...
Guide
...
to
...
building
...
Kuali
...
OLE
...
- Make
...
- sure
...
~/ole-build.properties
...
- and
...
~/impex-build.properties
...
- ,
...
- have
...
- been
...
- deleted
...
- from
...
- $
...
- {user.home}
...
- Full
...
- build
...
Info
...
Run
...
this
...
from
...
the
...
root
...
folder
...
anytime
...
anything
...
(including
...
the
...
pom's)
...
in
...
ole-common
...
changes.
...
For
...
example,
...
each
...
iteration.
...
No Format mvn clean install -DskipTests=true
...
Info CD into ole-app/ole-fs
...
folder
...
and
...
run
...
the
...
subsequent
...
commands
...
from
...
within.
...
- Generate the local configuration file configured with default values
No Format mvn generate-resources -Plocal
...
- The above command generates the file
No Format ~/.kuali/ole/ole-fs.properties
- The above command generates the file
...
- By default,
...
- the
...
- database
...
- vendor
...
- is
...
- MySQL
...
- with
...
- the
...
root
...
- password
...
- set
...
- to
...
NONE
...
- .
...
- You
...
- will
...
- need
...
- to
...
- update
...
- this
...
- file
...
- with
...
- the
...
- password
...
- for
...
- the
...
- MySQL
...
root
...
- user
...
- on
...
- your
...
- system
...
...
...
...
...
Property Loading
Info | ||
---|---|---|
| ||
Order of property loading - Within the codebase and should not be touched as it is checked into SVN.
configuration.properties (~/.kuali/ole/fs/configuration.properties) - present on the local machine and generated during the {{
phase when the {{
profile is active. Can be modified.
If an external configuration file is present. - local to the developer and doesn't get checked in to SVN. So can point to anywhere in the local system where you hava a valid configuration.properties file. {info} # Runtime property resolution is now possible for OLE FS\! # This means the exact same war file can be used for development as well as deployment without altering the binary # Automatically loaded external configuration files are used to reconfigure the binary with machine specific configuration # The default external directory used by OLE FS is now based on the system property {{user.home}} # To change this you only have to override one property - {{ole.fs.home}} ## Properties pointing to other directories needed by OLE FS are expanded into their absolute path at runtime ## This way only a single property needs to be overridden (instead of all of them) # The following external property locations are automatically checked and loaded, in this order, if they exist ## {noformat} |
- Runtime property resolution is now possible for OLE FS!
- This means the exact same war file can be used for development as well as deployment without altering the binary
- Automatically loaded external configuration files are used to reconfigure the binary with machine specific configuration
- The default external directory used by OLE FS is now based on the system property
user.home
- To change this you only have to override one property -
ole.fs.home
- Properties pointing to other directories needed by OLE FS are expanded into their absolute path at runtime
- This way only a single property needs to be overridden (instead of all of them)
- The following external property locations are automatically checked and loaded, in this order, if they exist
No Format ~/.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=true
...
- the
...
- following
...
- actions
...
- are
...
- also
...
- taken
...
- After
...
- loading
...
classpath:configuration.properties
...
- load
...
classpath:olefs-default.properties
...
- Expand
...
- any
...
- properties
...
- containing
...
- placeholders
...
- into
...
- their
...
- fully
...
- resolved
...
- equivalents
...
Logging
- A default logging configuration is now bundled into OLE FS
- This means logging will work out of the box without requiring you to point OLE FS at an external log4j.properties file
- You can still override the default log4j configuration if desired
- set the property
No Format ole.fs.log4j.override=true
- set the property
...
- This can be set as a system property
- Or as a property in one of the configuration files that gets automatically loaded
- create a log4j.properties containing your custom settings at
No Format ~/.kuali/ole/fs/log4j.properties
...
- OLE FS will use settings from the custom log4j.properties
- The custom properties file is also monitored by a background thread and reloaded if changes are made
- Going forward, any new logging statements added to OLE FS should use the SLF4J logging api
- If existing code is modified, log4j logging calls should be replaced by SLF4J logging calls
Properties
Info |
---|
System properties are set by specifying the -D parameter in the VM arguments. Ex. -Dolefs.configuration=~/.kuali/ole/fs/custom-configuration.properties - This will tell the app to pick the properties from the above specified location{info} || 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 | |location |
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 |
...
false | If true, |
...
property |
...
expansion |
...
is |
...
performed |
...
at |
...
runtime |
...
instead |
...
of |
...
at |
...
build |
...
time. |
...
The |
...
resource |
...
|
...
is |
...
loaded |
...
if |
...
this |
...
property |
...
is |
...
set |
...
to |
...
true |
...
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. |