Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » -noShutdown options not working(Eclipse 3.6)
icon4.gif  -noShutdown options not working [message #545030] Tue, 06 July 2010 13:19 Go to next message
Rustam  is currently offline Rustam Friend
Messages: 20
Registered: January 2010
Junior Member
Hi,

I have just tried to run following from command promt:

java -jar ./plugins/org.eclipse.osgi_3.6.0_XXX.jar -consoleLog -console -Declipse.ignoreApp=true -Dosgi.noShutdown=false

But after execute that one OSGi framework is not shutdown as I pointed by command osgi.noShutdown=false. Why comes it ?

Best regards,
Rustam.

P.S.:
I entered getprop osgi command in OSGi console and I saw that osgi.noShutdown=true !?? is it bug ?

[Updated on: Tue, 06 July 2010 13:20]

Report message to a moderator

Re: -noShutdown options not working [message #545091 is a reply to message #545030] Tue, 06 July 2010 14:57 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
Rustam wrote:

> Hi,
>
> I have just tried to run following from command promt:
>
> java -jar ./plugins/org.eclipse.osgi_3.6.0_XXX.jar -consoleLog -console
> -Declipse.ignoreApp=true -Dosgi.noShutdown=false

The "-Dosgi.noShutdown=false" needs to be passed as a vm argument, this
command is passing it as a program argument.

Try
java -Dosgi.noShutdown=false -Declipse.ignoreApp=true
-jar ./plugins/org.eclipse.osgi_3.6.0_XXX.jar -consoleLog -console

Everything before the -jar is a vm arg, everything after it is a program
arg.
Re: -noShutdown options not working [message #545243 is a reply to message #545091] Wed, 07 July 2010 09:53 Go to previous messageGo to next message
Rustam  is currently offline Rustam Friend
Messages: 20
Registered: January 2010
Junior Member
Hi,

Thanks, yes, it's working but what about that:

1. Create config.ini file with 2 lines:

eclipse.ignoreApp=true
osgi.noShutdown=false

2. Start equinox:

java -jar ./plugins/org.eclipse.osgi_3.6.0_XXX.jar -consoleLog -console -configuration my_configuration

then option osgi.noShutdown is not working !
Re: -noShutdown options not working [message #545402 is a reply to message #545243] Wed, 07 July 2010 16:19 Go to previous message
Thomas Watson is currently offline Thomas WatsonFriend
Messages: 503
Registered: July 2009
Senior Member
When using java -jar ./plugins/org.eclipse.osgi_3.6.0_XXX.jar to launch equinox the Main methods sets up osgi.noShutdown=true if it is not set already as VM -D arguments. This happens before reading the config.ini or initializing the framework. We assume that you don't want the framework to immediately shutdown after starting it this way. The issue here is the config.ini does not override system properties that are already set (and that is by design) so the config.ini properties you set are ignored.

I am wondering what you are trying to do? Why do you not want to run an application AND you want the framework to launch and shutdown without doing anything else.

Tom.
Previous Topic:installing a plugin from a folder (not a jar file)
Next Topic:P2 installer and supported platforms
Goto Forum:
  


Current Time: Thu Apr 25 11:05:55 GMT 2024

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

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

Back to the top