...
- Properties shall be loaded from the following places by default
- <SNAP_HOME>/etc/<cluster>snap.properties
- <SNAP_USER_DIR>/etc/<cluster>snap.properties
In which order are files loaded within a etc folder? Alphabetical? Undefined?
A file named <USER_NAME>.properties in could be handled special. It could be loaded last and therefore it can serve as a place where a user can specify it's own default properties. - Properties file given on command line
On the command line it shall be possible to specify a properties file. Properties given here overwrite properties loaded from SNAP_USER_DIR or SNAP_HOME.
The command line option could be
-c /path/to/special.properties
- Properties given as VM parameters
These properties shall have the highest priority and overwrite any other property loaded.
...