Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » provisioning program args
provisioning program args [message #527021] Tue, 13 April 2010 17:37 Go to next message
Alex Smirnoff is currently offline Alex SmirnoffFriend
Messages: 28
Registered: July 2009
Junior Member
Here is a touchpoint data that I have in my product IU content:

<instruction key='configure'>
addProgramArg(programArg:-vm);addProgramArg(programArg:jre/bin/javaw.exe);addJvmArg(jvmArg:-Xms32m);addJvmArg(jvmArg:-Xmx1024m);addJvmArg(jvmArg:-XX${#58}PermSize=64M);addJvmArg(jvmArg:-XX${#58}MaxPermSize=256M);addJvmArg(jvmArg:-Dorg.osgi.framework.bootdelegation=*);addJvmArg(jvmArg:-Dosgi.bundlefile.limit=200);addJvmArg(jvmArg:-Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl);addJvmArg(jvmArg:-Djavax.xml.parsers.DOMBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DOMBuilderFactoryImpl);addJvmArg(jvmArg:-Dcom.metatv.application.ApplicationFactory=com.tvworks.tva.packager.MockApplicationFactory);addJvmArg(jvmArg:-Dcom.metatv.server.ServerFactory=com.tvworks.tva.packager.MockServerFactory);
</instruction>


The p2.inf file was collocated with my product description file.

And here is what I am getting in my product launch INI file after installation:

-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
-Xms32m
-Xmx1024m
-XX:PermSize=64M
-XX:MaxPermSize=256M
-Dorg.osgi.framework.bootdelegation=*
-Dosgi.bundlefile.limit=200
-Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
-Djavax.xml.parsers.DOMBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DOMBuilderFactoryImpl
-Dcom.metatv.application.ApplicationFactory=com.tvworks.tva.packager.MockApplicationFactory
-Dcom.metatv.server.ServerFactory=com.tvworks.tva.packager.MockServerFactory


As you can see the program arguments were not installed. Is this a BUG or am I doing something wrong?

I have tested both 3.5.2 and 3.6 M6 installers/director.
Re: provisioning program args [message #527097 is a reply to message #527021] Wed, 14 April 2010 04:17 Go to previous messageGo to next message
Alex Smirnoff is currently offline Alex SmirnoffFriend
Messages: 28
Registered: July 2009
Junior Member
So I have dug a little bit of code about this phenomenon.

What I have figured out is that the -vm option is implicitly filtered off. This means that if I provide -vm option (does not matter in .product file or using p2.inf) it will not be set! The logic is in org.eclipse.equinox.internal.frameworkadmin.equinox.EclipseL auncherParser.setVM method.

Can anybody explain me why this argument is suppressed?
Re: provisioning program args [message #527109 is a reply to message #527021] Wed, 14 April 2010 06:34 Go to previous message
Alex Smirnoff is currently offline Alex SmirnoffFriend
Messages: 28
Registered: July 2009
Junior Member
I just saw this bug:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=282303

What is funny: it was fixed today!

Andrew, you're my man!
Previous Topic:Setting transaction factory for jetty
Next Topic:p2 director doesn't install binaries
Goto Forum:
  


Current Time: Thu Apr 25 11:22:11 GMT 2024

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

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

Back to the top