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

Bug 117748

Summary: [launching] add a launch_name variable for launch configurations
Product: [Eclipse Project] Platform Reporter: Rafael Chaves <eclipse>
Component: DebugAssignee: Platform-Debug-Inbox <platform-debug-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: enhancement    
Priority: P3 CC: dj.houghton, wassim.melhem
Version: 3.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Rafael Chaves CLA 2005-11-23 11:51:13 EST
3.2 M3

Add a launch_name variable for launch configurations. This would allow keeping up-to-date any paths that are based on the launch configuration name (for uniqueness sake). PDE launch configurations could make use of this for the default workspace location.
Comment 1 Rafael Chaves CLA 2005-12-01 11:48:02 EST
Just hit by this again. Wanted to run two instances of a runtime workbench at the same time (had launched one already). I just copied the launch configuration, remembered changing the workspace location to something else but forgot to do the same for the configuration area. 

The existing instance started to fail (the configuration area was being deleted by the second instance) and they both started to fail.

If this feture was supported, I would not have to remember anything and things would just work.
Comment 2 Darin Wright CLA 2006-01-05 11:25:23 EST
Should the variable resolve to the name of the launch configuration?
Comment 3 Wassim Melhem CLA 2006-01-05 11:30:45 EST
yes. that would be suitable for the pde scenario.
Comment 4 Darin Wright CLA 2006-01-05 11:54:52 EST
Unfortunately, this reveals a limitation (design point) of the "dynamic" variable support. The variables are used to support string substitution. To allow any client to use/resolve all variables in an expression, an expression is resolved using the expression alone (i.e. no extra context such as the current launch configuration, as clients defining variables do not know about eachother and what context(s) to pass into a string substitution). To get arround this issue, we allow variables to have arguments. So, for example, the "system property" variable accepts the name of a system property. The property is resolved in the Eclipse runtime.

However, in this case an argument to the "launch_name" variable is unhelpful (as it would have to contain the name of the config, which can change). Can PDE solve this in another way? If all you want is a common prefix, perhaps that should be a seperate field/attribute of the config? We can't support this with the existing string substitution support. 
Comment 5 Darin Wright CLA 2006-01-10 11:22:37 EST
See similar problem with bug 119582.

Not planned for 3.2
Comment 6 Wassim Melhem CLA 2006-03-16 11:19:41 EST
*** Bug 132174 has been marked as a duplicate of this bug. ***
Comment 7 Curtis Windatt CLA 2007-10-31 12:46:05 EDT
*** Bug 208266 has been marked as a duplicate of this bug. ***
Comment 8 Denis Roy CLA 2009-08-30 02:16:38 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.