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 |
Bug Menot Messages: 4 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 #1160449 is a reply to message #1159481] |
Tue, 29 October 2013 06:11 |
Thomas Schindl Messages: 6651 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 |
Ed Merks Messages: 33141 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
>>>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: Contributing to eclipse.ini [message #1162520 is a reply to message #1160814] |
Wed, 30 October 2013 12:35 |
Thomas Schindl Messages: 6651 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
>>>>
>
|
|
|
Goto Forum:
Current Time: Thu Apr 25 22:13:11 GMT 2024
Powered by FUDForum. Page generated in 0.03567 seconds
|