Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » p2 build:contributing program argument to launcher INI file
p2 build:contributing program argument to launcher INI file [message #605482] Wed, 07 April 2010 01:48 Go to next message
Alex Smirnoff is currently offline Alex SmirnoffFriend
Messages: 28
Registered: July 2009
Junior Member
I have requirement to set explicitly -vm option with p2 build. I have next p2.inf collocated with .product file:

instructions.configure = \
addProgramArg(programArg:-vm);\
addProgramArg(programArg:jre/bin/javaw.exe);
instructions.unconfigure= \
removeProgramArg(programArg:-vm);\
removeProgramArg(programArg:jre/bin/javaw.exe);

Everything works fine, however, after the build finishes, the option is located in the wrong place:

-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715. jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200 .v20090519
-vmargs
-vm
jre/bin/javaw.exe
-Xms32m
-Xmx1024m
-XX:PermSize=64M
-XX:MaxPermSize=256M

which causes the product not to start. The only way it starts is if -vm is moved above -vmargs option (that is obvious). So the question is: how can I make it appear on the first line. Now it seems to "append" to the program options.

Thanks,
Alex.
Re: p2 build:contributing program argument to launcher INI file [message #605536 is a reply to message #605482] Wed, 07 April 2010 18:58 Go to previous message
Alex Smirnoff is currently offline Alex SmirnoffFriend
Messages: 28
Registered: July 2009
Junior Member
Wierd, with p2 enabled PDE build, when I place -vm option in Program Arguments section, it never ends up in launch file. The -vmargs section is specified below appears in launch ini file without a problem.

One more detail I am using 3.5.2.
Previous Topic:Layout part
Next Topic:LIsten For File Save Event?
Goto Forum:
  


Current Time: Thu Apr 25 06:29:39 GMT 2024

Powered by FUDForum. Page generated in 0.03055 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top