Commands
- Full build
mvn clean install
- Generate the local configuration file configured with default values
mvn generate-resources -Plocal
- The above command generates the file
~/.kuali/ole/fs/configuration.properties
- The above command generates the file
- Package OLE FS data into jar files
mvn clean install -Pdata
- Reset an OLE FS database
mvn clean initialize -Pdb
Property Loading
- Runtime property resolution is now possible for OLE FS!
- This means the exact same war file can be deployed on multiple servers without altering the binary
- External configuration files are automatically used to reconfigure the binary with machine specific configuration
- Handled by
PropertyLoadingFactoryBean
- Checks the following external locations automatically (and in this order)
~/.kuali/ole/fs/configuration.properties
- If the system property
olefs.configuration
is set, the properties file it points to is automatically loaded
- If the property
ole.fs.runtime.property.expansion
is set to the value true it also takes the following actions- After loading
classpath:configuration.properties
loadclasspath:olefs-default.properties
- Expand any properties containing placeholders into their fully resolved equivalents
- After loading
Logging
- A default logging configuration is now bundled into OLE FS
- All logging is handled at runtime via Log4j
- Any logging added to the application from now on should use SLF4J
- As code gets updated, log4j logging statements should get replaced with SLFJ logging statements
- To override the default log4j configuration
- set the property
ole.fs.log4j.override=true
- create the file
~/.kuali/ole/fs/log4j.properties
containing your custom settings
- set the property
Properties
Property |
Default Value |
Description |
---|---|---|
olefs.configuration |
None |
If this system property is set, properties are loaded from the location it points to. Properties supplied here, override internal properties |
ole.fs.runtime.property.expansion=true/false |
true |
If true, property expansion is performed at runtime instead of at build time. The resource |
ole.fs.log4j.override=true/false |
false |
Set this to true if you want to override the default log4j.properties supplied with the application. This also allows you to alter the log4j configuration at runtime without restarting the application. The log4j.properties file supplied here is monitored by a background thread. It is automatically reloaded when changes are detected. |