Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » vmargs of eclipse.ini ignored in case any vmarg is passed on the command line
vmargs of eclipse.ini ignored in case any vmarg is passed on the command line [message #488254] Sat, 26 September 2009 21:44 Go to next message
Michael Pellaton is currently offline Michael PellatonFriend
Messages: 289
Registered: July 2009
Senior Member
Hello

I use vmargs to customize the behaviour in a plug-in and I need to set
sensible values for ALL employees at our company. So, I thought about
putting these vmargs into eclipse.ini in that way

-vmargs
....(the ones already there from Eclipse 3.5.1)...
-Dfoo=bla

This works perfectly in case the user does not pass Eclipse any -vmarg
on the command line starting Eclipse. As soon as a -vmarg is present
from the command line, all vmargs from eclipse.ini are simply ignored.

Is this the intended behaviour?

I expected that the vmargs from the command line and ini file are merged
in a way so that ones from the command line overwrite arguments from the
ini file in case the key/name is identical (some sort of simple
inheritance) and that all vmargs not declared on the command line are
used from the ini file.

All the doc about running Eclipse and passing arguments to it (see help
center) does not tell anything about the issue.

Is there any way to configure system properties on an installation level
that are always passed regardless what command line options the user
passes?

(I know, a plugin with a startup hook setting the values or a fragement
supplying an additional configuration file instead of using system
properties would both be solutions, but I think coding a plugin is a bit
too much to ask for users of my plugin that just want to preset some
behaviour on an installation level).

Thanks

Michael
Re: vmargs of eclipse.ini ignored in case any vmarg is passed on the command line [message #488824 is a reply to message #488254] Wed, 30 September 2009 12:30 Go to previous message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1853
Registered: July 2009
Senior Member
Michael Pellaton wrote:

> [...] As soon as a -vmarg is present
> from the command line, all vmargs from eclipse.ini are simply ignored.

You might want to add your vote to https://bugs.eclipse.org/149994

Stephan
Previous Topic:How can i export all settings in Eclipse software ?
Next Topic:Product runnable on several platforms
Goto Forum:
  


Current Time: Tue Mar 19 11:52:36 GMT 2024

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

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

Back to the top