Open arcanefoam opened 7 years ago
The file could be watched using a WatchService and the Ecco service reinitialised as soon as it changes (and is valid).
I'd suggest having the properties file in the classpath as a template, which is written to a file in the .ecco
directory which is then subsequently used. If the file changes are noticed by the WatchService
, the Ecco service is reloaded, if the file is deleted or invalid at the point of opening the repo in the GUI it is regenerated.
Currently, when the Ecco Service is initiated the properties files is read form the class path. This means that if you want to provide a different configuration you need to change the ecco.properties file in the service project. This file should be either:
Since you try to emulate a CVS repository, the above fit into the git approach: specific properties per repository (in the .ecco folder), global properties in the .git (.ecco) folder in the user home, default settings loaded from the service class.