Appendix C: System Properties
System properties can be specified at JVM startup, using the command line argument
-D. Additionally, system properties can be read or set using the
setProperty() methods of the
You can use system properties to set or override values of application properties. For example, the following command line argument will override the value of the cuba.connectionUrlList property which is normally set in the
Keep in mind, that system properties affect the whole JVM, i.e all application blocks running on the JVM will get the same value of a property.
System properties are cached by the framework at server startup, so your application should not rely on ability to override an application property by changing a system property at runtime. If you absolutely need it, reset the cache after changing a system property using the
Below are the system properties that are used by the platform but are not application properties.
Defines the location of the Logback framework configuration file.
For application blocks running on the Tomcat web server, this system property is configured in the
tomcat/bin/setenv.shfiles. By default, it points to the
This system property is set to
CubaTestCasebase class is running integration tests.
if (!Boolean.valueOf(System.getProperty("cuba.unitTestMode"))) return "Not in test mode";