How to change the default config for an exported eclipse product [message #331678] |
Tue, 16 September 2008 10:23 |
Eclipse User |
|
|
|
Originally posted by: j4r0d.hotmail.com
Hello,
I am exporting an eclipse product with some of my plugins.
As this Eclipse is meant for a special use, I wish I could export my Eclipse
with a little bit different settings (especially some options in the
preference menu) :
- Launching : I want the option "Always launch the previously launched
application" to be the default choice rather than "launch the selected
resource..."
- Compiler : I want the default compiler compliance level to be 1.3 rather
than 1.6.
How can I do that?
One last question,
In my eclipse folder I have an eclipse.ini containing the following lines:
--launcher.XXMaxPermSize
1024m
-vmargs
-Xms128m
-Xmx1024m
Obviously this file is ignored by Eclipse and I don't know why. However, if
I launch Eclipse with the following command line, this is working well :
Eclipse.exe -vmargs -Xms128m -Xmx1024m
Why is my eclipse.ini file not working? How can I fix this?
Thanks for your help.
J.
|
|
|
Re: How to change the default config for an exported eclipse product [message #331687 is a reply to message #331678] |
Tue, 16 September 2008 13:42 |
Eclipse User |
|
|
|
Originally posted by: eclipse-news.rizzoweb.com
Note: I'm copying this to the RCP newsgroup.
More comments inline below.
Jarod Mills wrote:
> Hello,
>
> I am exporting an eclipse product with some of my plugins.
> As this Eclipse is meant for a special use, I wish I could export my Eclipse
> with a little bit different settings (especially some options in the
> preference menu) :
>
> - Launching : I want the option "Always launch the previously launched
> application" to be the default choice rather than "launch the selected
> resource..."
>
> - Compiler : I want the default compiler compliance level to be 1.3 rather
> than 1.6.
>
> How can I do that?
There was a thread recently on the eclipse.platform.rcp newsgroup where
someone outlined how to do something similar. Perhaps that person will
chime in again...
>
> One last question,
> In my eclipse folder I have an eclipse.ini containing the following lines:
> --launcher.XXMaxPermSize
> 1024m
> -vmargs
> -Xms128m
> -Xmx1024m
>
> Obviously this file is ignored by Eclipse and I don't know why.
Why do you say "obviously?"
Are you talking about Eclipse your dev tool or your Eclipse-based RCP
product? If the latter, note that the .ini file has to have the same
name prefix as the executable file. For example, MyProduct.exe will look
for MyProduct.ini
Hope this helps,
Eric
|
|
|
Re: How to change the default config for an exported eclipse product [message #331699 is a reply to message #331687] |
Wed, 17 September 2008 07:55 |
Eclipse User |
|
|
|
Originally posted by: j4r0d.hotmail.com
Thanks Eric for the "MyProduct.ini" explanation. It now works very well.
Regarding my first question, I have found the attribute I'm interested in
with the file -> export -> preferences
The interesting lines are:
/instance/org.eclipse.debug.ui/org.eclipse.debug.ui.UseConte xtualLaunch=false
/instance/org.eclipse.jdt.core/org.eclipse.jdt.core.compiler .compliance=1.3
I've tried to put those lines into my plugin_customization.ini before
exporting the platform:
org.eclipse.debug.ui/UseContextualLaunch=false
org.eclipse.jdt.core/compiler.source=1.3
But unfortunately, this is not working...
Do you guys have any ideas about this? Have I missed something?
Thanks for your answers.
--
J.
"Eric Rizzo" <eclipse-news@rizzoweb.com> wrote in message
news:gaod1e$vv5$1@build.eclipse.org...
> Note: I'm copying this to the RCP newsgroup.
> More comments inline below.
>
> Jarod Mills wrote:
>> Hello,
>>
>> I am exporting an eclipse product with some of my plugins.
>> As this Eclipse is meant for a special use, I wish I could export my
>> Eclipse with a little bit different settings (especially some options in
>> the preference menu) :
>>
>> - Launching : I want the option "Always launch the previously launched
>> application" to be the default choice rather than "launch the selected
>> resource..."
>>
>> - Compiler : I want the default compiler compliance level to be 1.3
>> rather than 1.6.
>>
>> How can I do that?
>
> There was a thread recently on the eclipse.platform.rcp newsgroup where
> someone outlined how to do something similar. Perhaps that person will
> chime in again...
>
>>
>> One last question,
>> In my eclipse folder I have an eclipse.ini containing the following
>> lines:
>> --launcher.XXMaxPermSize
>> 1024m
>> -vmargs
>> -Xms128m
>> -Xmx1024m
>>
>> Obviously this file is ignored by Eclipse and I don't know why.
>
> Why do you say "obviously?"
> Are you talking about Eclipse your dev tool or your Eclipse-based RCP
> product? If the latter, note that the .ini file has to have the same name
> prefix as the executable file. For example, MyProduct.exe will look for
> MyProduct.ini
>
> Hope this helps,
> Eric
|
|
|
|
Powered by
FUDForum. Page generated in 0.03155 seconds