Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » P2 dev » Update eclipse.ini using P2
Update eclipse.ini using P2 [message #531338] Tue, 04 May 2010 14:54 Go to next message
Marc Vachon is currently offline Marc Vachon
Messages: 8
Registered: April 2010
Junior Member
Hi,

I'm looking at using P2 to install/update Eclipse and a handful of plug-ins. Some of those plug-ins require the eclipse.ini file to be updated with -vm and -vmargs options. What's the best approach to update the ini file using P2?

Cheers,
Marc
Re: Update eclipse.ini using P2 [message #540028 is a reply to message #531338] Mon, 14 June 2010 16:00 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew Niefer
Messages: 990
Registered: July 2009
Senior Member
You can use a p2.inf file to customize the p2 metadata generated for your bundle.

http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/p2_customizing_metadata.html
http://wiki.eclipse.org/Equinox/p2/Customizing_Metadata
http://wiki.eclipse.org/Equinox/p2/Engine/Touchpoint_Instruc tions

You want touchpoint instructions, the "addProgramArg" and "addJvmArg" add arguments to the eclipse.ini file. (You may also want removeProgramArg and removeJvmArg in the unconfigure or uninstall phase to remove the options when your plugin gets uninstalled or upgraded)

addJvmArg(jvmArg:-Xms40m);addJvmArg(jvmArg:-Xmx384m);
addProgramArg(programArg:-foo);addProgramArg(programArg:bar) ;
Re: Update eclipse.ini using P2 [message #540030 is a reply to message #540028] Mon, 14 June 2010 16:01 Go to previous message
Marc Vachon is currently offline Marc Vachon
Messages: 8
Registered: April 2010
Junior Member
Thanks Andrew
Previous Topic:p2 in RCP Update Manager- Profile id _SELF_ is not registered error
Next Topic:Specifying naming rules for downloaded bundles
Goto Forum:
  


Current Time: Wed Oct 22 23:12:36 GMT 2014

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

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