Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Contributing to eclipse.ini (from plugin?)
Contributing to eclipse.ini (from plugin?) [message #1153371] Thu, 24 October 2013 15:11 Go to next message
Bug Menot is currently offline Bug Menot
Messages: 2
Registered: October 2013
Junior Member
I need an ability to optionally add some arguments to eclipse's JVM (-javaagent option to be more precise). As far as I know, JVM's options are configured from the eclipse.ini file. Is there any standard way I can contribute an entry into eclipse.ini from a plugin?

Asking user to modify his config is acceptable, but I think an automated way is much better.

[Updated on: Thu, 24 October 2013 16:05]

Report message to a moderator

Re: Contributing to eclipse.ini [message #1156139 is a reply to message #1153371] Sat, 26 October 2013 10:23 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 26054
Registered: July 2009
Senior Member
If you're doing something in a plugin, the ini has already been used so
it would be too late (for that JVM) and a restart would be required,
right? I.e., JVM arguments are processed by the JVM before anything
else happens in code that you run in that JVM...


On 24/10/2013 5:14 PM, Bug Menot wrote:
> I need an ability to optionally add some arguments to eclipse's JVM
> (-javaagent option to be more precise). As far as I know, JVM's
> options are configured from the eclipse.ini file. Is there any
> standard way I can contribute an entry into eclipse.ini from a plugin?
>
> Asking user to modify his config is acceptable, but I think an
> automated way is much better.
>
Re: Contributing to eclipse.ini [message #1159412 is a reply to message #1156139] Mon, 28 October 2013 14:12 Go to previous messageGo to next message
Bug Menot is currently offline Bug Menot
Messages: 2
Registered: October 2013
Junior Member
Ed Merks wrote on Sat, 26 October 2013 06:23
If you're doing something in a plugin, the ini has already been used so
it would be too late (for that JVM) and a restart would be required,
right? I.e., JVM arguments are processed by the JVM before anything
else happens in code that you run in that JVM...

yeah, I understand that, and asking user for reboot is reasonable
Re: Contributing to eclipse.ini [message #1159481 is a reply to message #1159412] Mon, 28 October 2013 15:14 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 26054
Registered: July 2009
Senior Member
So no, there isn't a standard way. You'd have to manipulate that file
textually.

On 28/10/2013 3:12 PM, Bug Menot wrote:
> Ed Merks wrote on Sat, 26 October 2013 06:23
>> If you're doing something in a plugin, the ini has already been used
>> so it would be too late (for that JVM) and a restart would be
>> required, right? I.e., JVM arguments are processed by the JVM before
>> anything else happens in code that you run in that JVM...
>
> yeah, I understand that, and asking user for reboot is reasonable
>
Re: Contributing to eclipse.ini [message #1160449 is a reply to message #1159481] Tue, 29 October 2013 06:11 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5330
Registered: July 2009
Senior Member
IIRC p2 can write there!

Tom

On 28.10.13 16:14, Ed Merks wrote:
> So no, there isn't a standard way. You'd have to manipulate that file
> textually.
>
> On 28/10/2013 3:12 PM, Bug Menot wrote:
>> Ed Merks wrote on Sat, 26 October 2013 06:23
>>> If you're doing something in a plugin, the ini has already been used
>>> so it would be too late (for that JVM) and a restart would be
>>> required, right? I.e., JVM arguments are processed by the JVM before
>>> anything else happens in code that you run in that JVM...
>>
>> yeah, I understand that, and asking user for reboot is reasonable
>>
>
Re: Contributing to eclipse.ini [message #1160814 is a reply to message #1160449] Tue, 29 October 2013 11:19 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 26054
Registered: July 2009
Senior Member
Tom,

Really?! What's the API for that? This would be useful for the
installer tool Eike and I are working on where we're already using P2 to
install things...

On 29/10/2013 7:11 AM, Tom Schindl wrote:
> IIRC p2 can write there!
>
> Tom
>
> On 28.10.13 16:14, Ed Merks wrote:
>> So no, there isn't a standard way. You'd have to manipulate that file
>> textually.
>>
>> On 28/10/2013 3:12 PM, Bug Menot wrote:
>>> Ed Merks wrote on Sat, 26 October 2013 06:23
>>>> If you're doing something in a plugin, the ini has already been used
>>>> so it would be too late (for that JVM) and a restart would be
>>>> required, right? I.e., JVM arguments are processed by the JVM before
>>>> anything else happens in code that you run in that JVM...
>>> yeah, I understand that, and asking user for reboot is reasonable
>>>
Re: Contributing to eclipse.ini [message #1162520 is a reply to message #1160814] Wed, 30 October 2013 12:35 Go to previous message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5330
Registered: July 2009
Senior Member
Damn, it's the config.ini that p2 modifies :-( But if someone has API
for that then it is p2.

Tom

On 29.10.13 12:19, Ed Merks wrote:
> Tom,
>
> Really?! What's the API for that? This would be useful for the
> installer tool Eike and I are working on where we're already using P2 to
> install things...
>
> On 29/10/2013 7:11 AM, Tom Schindl wrote:
>> IIRC p2 can write there!
>>
>> Tom
>>
>> On 28.10.13 16:14, Ed Merks wrote:
>>> So no, there isn't a standard way. You'd have to manipulate that file
>>> textually.
>>>
>>> On 28/10/2013 3:12 PM, Bug Menot wrote:
>>>> Ed Merks wrote on Sat, 26 October 2013 06:23
>>>>> If you're doing something in a plugin, the ini has already been used
>>>>> so it would be too late (for that JVM) and a restart would be
>>>>> required, right? I.e., JVM arguments are processed by the JVM before
>>>>> anything else happens in code that you run in that JVM...
>>>> yeah, I understand that, and asking user for reboot is reasonable
>>>>
>
Previous Topic:Error exporting a product (with Eclipse 4.3.1) to multiple platforms
Next Topic:WSDL Page Not Working Correctly
Goto Forum:
  


Current Time: Fri Sep 19 22:03:45 GMT 2014

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

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