Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Properties shall be loaded from the following places by default
    1. <SNAP_HOME>/etc/<cluster>snap.properties
    2. <SNAP_USER_DIR>/etc/<cluster>snap.properties
    Each properties file found in etc is loaded. By convention they should be named like the cluster they belong to.
    Properties given in a file of SNAP_USER_DIR will overwrite those in SNAP_HOME.
    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.
  2. 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
  3. Properties given as VM parameters
    These properties shall have the highest priority and overwrite any other property loaded.

...