[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [ptp-dev] AbstractPerformanceDatamanager class usage question
|
Greg
I'm not passed a reference to the IRemoteProcessBuilder for my target
application. All I have is strings for project name and location and the
ILaunchConfiguration for my application.
Dave
Greg Watson <g.watson@xxxxxxxxxxxx>
Sent by: ptp-dev-bounces@xxxxxxxxxxx
05/13/2009 09:58 AM
Please respond to
Parallel Tools Platform general developers <ptp-dev@xxxxxxxxxxx>
To
Parallel Tools Platform general developers <ptp-dev@xxxxxxxxxxx>
cc
Subject
Re: [ptp-dev] AbstractPerformanceDatamanager class usage question
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
_______________________________________________
ptp-dev mailing list
ptp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ptp-dev