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

Bug 321624

Summary: Pgm & Vm Arguments get duplicated when launching from product editor
Product: [Eclipse Project] PDE Reporter: Darin Wright <darin.eclipse>
Component: UIAssignee: Ankur Sharma <ankur_sharma>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: kevin.pfarr
Version: 3.7   
Target Milestone: 3.7 M2   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Patch none

Description Darin Wright CLA 2010-08-03 12:07:06 EDT
I20100802-1800

Steps:
* Create an RCP application project named "a.prod" based on the "Hello RCP" Template
* After the project is created, launch the project by pressing the "run" button in the project's manifest editor. This creates a launch configuration named "a.prod.application", and on Windows has Pgm & Vm args as follows:

-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -consoleLog

-Xms40m -Xmx384m

* Create a new Product Configuration in project "a.prod", named "def.prod". Initialize the content from the "a.prod.application" launch configuration. The product's "Launching" tab is correctly initialized with Pgm and VM args as follows:

-consoleLog

-Xms40m -Xmx384m

* Launch the product by pressing the "Run" button in the product editor. The resulting launch configuration named "def.product" has Pgm and VM args as follows:

-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -consoleLog -consoleLog

-Xms40m -Xmx384m -Xms40m -Xmx384m

* The consoleLog and memory arguments are duplicated
Comment 1 Ankur Sharma CLA 2010-08-06 08:41:04 EDT
Created attachment 176033 [details]
Patch
Comment 2 Ankur Sharma CLA 2010-08-09 02:45:51 EDT
Fixed in HEAD
Comment 3 Kevin Pfarr CLA 2011-07-22 14:47:25 EDT
Found an issue with this fix.

If the Pgm & Vm args contains quotes, they will get striped in the generated run configuration when ran from the product editor page.