[patch] Configurable location for the server's configuration file ------------------------------------------------------------------
Key: LABS-434 URL: https://issues.apache.org/jira/browse/LABS-434 Project: Labs Issue Type: Improvement Components: Hupa Affects Versions: Current Reporter: Manuel Carrasco Fix For: Current So far the file config.properties is get for the classpath. This implies that the file has to be packed with the application, (or put it in a folder defined in the classpath). This patch introduces new ways to configure the application, this is the preference for searching the file: 1.- a system property: -Dhupa.config.file=/path/file 2.- in $HOME/.hupa/config.properties 3.- in /etc/default/hupa 4.- in the classpath: config.properties The patch also moves the config.properties file from the 'client' to the 'server' resources folder, because imho is the logic location. The patch includes a test. The goal: with this feature the application can be easily distributed as a .war file because the user can easily define her configuration. Thanks Manolo -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: labs-unsubscr...@labs.apache.org For additional commands, e-mail: labs-h...@labs.apache.org