Relaunching Application [message #464000] |
Thu, 22 February 2007 02:29  |
Eclipse User |
|
|
|
Hi All,
we are restarting our application to make an entry in the
config.ini for osgi.nl using IPlatformRunnable.EXIT_RESTART and it is
picking up the entry and displaying in the corresponding language..this is
working fine....
now we want to do the same through myproduct.ini file and we made the
entry as -nl
de
but while it restarts it is not taking up the new entry...so,as we read
relaunching application will take up the new command line arguments..we
tried relaunching our application using
IPlatformRunnable.EXIT_RELAUNCH...but our application is
terminated...so..how to make our appln to pick up the new command line
arguments?
One more Reason to use myproduct.ini file:
we are stopping the splash screen for the first time (-noSplash) and want
to display the splash screen when it is restarted/relaunched by making an
entry in myproduct.ini(-showSplash).....
thanks,
Aravind
|
|
|
Re: Relaunching Application [message #464034 is a reply to message #464000] |
Thu, 22 February 2007 11:37  |
Eclipse User |
|
|
|
Aravind,
Without going into the details, I would suggest not relying on the ini file
being re-read. In eclipse versions 3.3M4 or older it will not be re-read. In
3.3M5 or newer it may be re-read depending on how the vm was started (in-process
using JNI invocation or forked in a separate process)
You should relaunch using IPlatformRunnable.EXIT_RELAUNCH. Note that the
javadoc there is wrong, the property you want to set to give the new command
line is "eclipse.exitdata" (not "eclipse.exit"). This mistake is likely the
reason the relaunch is not working for you.
Think of the command line as the command you would give to java to start it.
Each argument in your command line should be separated by \n. The exitdata to
relaunch with the same command line can be build from the properties:
<eclipse.vm>\n<eclipse.vmargs>\n<eclipse.commands>
I would suggest you use those and just modify the eclipse.commands portion to
change your splash arguments for the relaunch. You should still make the
changes to your product.ini file so that next time they will be there.
-Andrew
Aravind wrote:
> Hi All,
> we are restarting our application to make an entry in the
> config.ini for osgi.nl using IPlatformRunnable.EXIT_RESTART and it is
> picking up the entry and displaying in the corresponding language..this
> is working fine....
> now we want to do the same through myproduct.ini file and we made the
> entry as -nl
> de
>
> but while it restarts it is not taking up the new entry...so,as we read
> relaunching application will take up the new command line arguments..we
> tried relaunching our application using
> IPlatformRunnable.EXIT_RELAUNCH...but our application is
> terminated...so..how to make our appln to pick up the new command line
> arguments?
>
> One more Reason to use myproduct.ini file:
> we are stopping the splash screen for the first time (-noSplash) and
> want to display the splash screen when it is restarted/relaunched by
> making an entry in myproduct.ini(-showSplash).....
>
> thanks,
> Aravind
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03549 seconds