Application Initialization & Properties - Unidata/rosetta GitHub Wiki
- Check to see if $ROSETTA_HOME exists ($ROSETTA_HOME specified in $JAVA_OPTS).
- If doesn't exist:
- If does exist:
- Checks to see if application.properties file exists in $ROSETTA_HOME.
- If doesn't exist:
- Creates default file application.properties file in $ROSETTA_HOME
- Reads in data from application.properties and stores in Properties()
- Reads if does exist
- Reads in data from application.properties and stores in Properties()
- Adds Properties() to database
- If properties data exists in db prior, compare data in Properties() to db data
- Replace db data with Properties() data and log differences
- In future, notify admin of these differences via interface and let him/her sort it out
- Compare properties in database to entries to current Rosetta version
- If additional properties are added in new version
- Update database and application.properties file with new properties
- Log the additions
- In future, notify admin of these differences via interface