Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Riena » System Property "riena.development"
System Property "riena.development" [message #701650] Mon, 25 July 2011 07:52 Go to next message
Stefan Liebig is currently offline Stefan Liebig
Messages: 124
Registered: July 2009
Senior Member
We recently had a discussion with a user about the strange default setting of this system property which is "true"! This means that if the property is not set it will be interpreted as true.
While this is helpful when you are developing and/or are new to Riena it is awkward when you deploy your application because you then have to set this system property explicitly to "false" - uh!

I did a little bit of "research" and came up with the following solution.
The default value of the system property should be derived from the existence of the system property "osgi.dev" (see also http://help.eclipse.org/help32/topic/org.eclipse.platform.doc.isv/reference/misc/runtime-options.html). It will be set when started from within the Eclipse IDE.
If this property is set (non null) we assume development mode and thus the default value for "riena.development" will be "true". If it is not set (null) we assume "deploy mode".
This should mimic the current behavior with the advantage that "riena.development" has not to be explicitly set to "false" for the deployed application.

Concerns? Comments? ..

Tschüß,
Stefan
Re: System Property "riena.development" [message #705044 is a reply to message #701650] Fri, 29 July 2011 07:14 Go to previous message
Stefan Liebig is currently offline Stefan Liebig
Messages: 124
Registered: July 2009
Senior Member
Added a bug for this https://bugs.eclipse.org/bugs/show_bug.cgi?id=353395
Previous Topic:How to save the state of views?
Next Topic:EclipseCon Europe
Goto Forum:
  


Current Time: Fri Aug 01 20:43:43 EDT 2014

Powered by FUDForum. Page generated in 0.01467 seconds