Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ptp-dev] ETFW classes and methods to query togoption settings

Greetings

The ability to set environment variables through the xml-spec is already present, with syntax like:
        <global name="SCORPEnvironment">
              <envvar flag="FOO" value="BAR"/>
      </global>
(The environment variable FOO is set to the value BAR)
Or though a ui element:
<togoption label="Env Bar" optname="BAR" envvar="true">
                      <optvalue type="text"/>
</togoption>
(envvar means the optname, BAR, will be set as the environment variable name and given the value put in the text box created in the UI)

If I understand, you need to pass the same value as an environment variable for one step and a command line argument for another?  The easy, but ugly way is to have two UI elements, one for the variable and one for the argument and set them to the same value.  I will need to dig around a bit to find a cleaner way to handle it.

Regards,
Wyatt

On Wed, Feb 29, 2012 at 2:40 PM, Brian Watt <bwatt@xxxxxxxxxx> wrote:

Wyatt,

I have a three step ETFW process.

1. The first step creates a temporary file as an "analyze" task.
2. The second sets some environment variables and runs an executable that
produces several output files as an "execute" task.
3. The third step compares the timestamp of the temporary file to the
output files and loads only the latest files into a view as an "analyze"
task.

Presently this all works if all of the files are created in the current
working directory. However, I now need to specify an output directory as an
environment variable in the second task, and I need to access its value in
the first task when I create the temporary file. What ETFW classes and
methods should I investigate to accomplish this?

Brian Watt, IBM

_______________________________________________
ptp-dev mailing list
ptp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ptp-dev



Back to the top