Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 321624 - Pgm & Vm Arguments get duplicated when launching from product editor
Summary: Pgm & Vm Arguments get duplicated when launching from product editor
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.7 M2   Edit
Assignee: Ankur Sharma CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-03 12:07 EDT by Darin Wright CLA
Modified: 2011-07-22 14:47 EDT (History)
1 user (show)

See Also:


Attachments
Patch (2.12 KB, patch)
2010-08-06 08:41 EDT, Ankur Sharma CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.