Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 239251

Summary: Environment variables on Parallel Application launcher
Product: [Tools] PTP Reporter: Daniel Felix Ferber <dfferber>
Component: CoreAssignee: Greg Watson <g.watson>
Status: RESOLVED FIXED QA Contact: Craig E Rasmussen <crasmussen>
Severity: normal    
Priority: P3    
Version: 2.1M2   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Daniel Felix Ferber CLA 2008-07-02 10:19:24 EDT
I have some concerns about which and how environment variables are passed by the Parallel Application launcher to the parallel application. I noticed that:

- AbstractRemoteProcess populates the initial map for environment variables with the environment from the local machine. This might not be the correct variables if the target is a remote host. In this situation, if both local and remote host define the same variable, then the remote one will be overridden with the value of the local one. The local value might not make sense for the remote host.

- The launcher configuration tab has an option where the user chooses: 1) Append variables from the launcher configuration to existing environment or 2) Replace all environment with the variables from the launcher configuration. When the user selects the first option, then then new variables are merged with all local environment variables. If the resource manager is connected on a remote host, then the same issue arises: The local value might not make sense for the remote host.

- Also, RemoteTools always inherits environment variables from the remote host, regardless of the users choice.

Therefore, if the user adds variables to the launcher environment tab, then the launcher behavior will probably not be consistent regarding to environment variables.
Comment 1 Daniel Felix Ferber CLA 2008-08-21 15:31:59 EDT
I worked out a solution as discussed in the list.
1) Disabled the "append"/"replace" option in the environment tab. The user cannot select "replace" anymore.
2) The launch delegate does not add local environment anymore to the launch configuration.
Comment 2 Daniel Felix Ferber CLA 2008-08-21 15:38:59 EDT
I have commited the fix.