Dave,
Do you have access to the IRemoteProcessBuilder? You can call environment() on this to obtain the environment, then add/remove environment variables directly.
Greg On May 12, 2009, at 9:06 PM, Dave Wootton wrote: I need to automatically set an environment variable before running my target application, where the value of the environment variable may be different between runs. I have a class which extends AbstractPerformanceDataManager where I run a 'touch' command prior to running my application. I'm using this class to set the environment variable value I need by obtaining an ILaunchConfigurationWorkingCopy instance of the ILaunchConfiguration and adding the new environment variable to the org.eclipse.debug.core.environmentVariables attribute then saving the launch configuration. This seems to work correctly for me, but I want to be sure what I'm doing is legitimate since I'm making some assumptions about order of processing for running my application.. If this is legitimate, then I realize that I should also clean up the launch configuration after my application runs. I can do that cleanup in my post-processing step. Thanks Dave_______________________________________________ ptp-dev mailing list ptp-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/ptp-dev
|