Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353395 - Default value of System Property "riena.development"
Summary: Default value of System Property "riena.development"
Status: RESOLVED FIXED
Alias: None
Product: Riena
Classification: RT
Component: Core (show other bugs)
Version: 3.0.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Stefan Liebig CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-29 07:12 EDT by Stefan Liebig CLA
Modified: 2011-07-29 08:13 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Liebig CLA 2011-07-29 07:12:44 EDT
We recently had a discussion with a user about the strange default setting of the system property "riena.development" 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".

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 the system property "osgi.dev" is set (non null) we assume development mode and thus the default value for "riena.development" will be "true"; otherwise 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.
Comment 1 Stefan Liebig CLA 2011-07-29 08:13:20 EDT
Default value for "riena.development" will be retrieved as described in the description.