Where does EasyConf look for the configuration files?

Every property or xml file looked for by EasyConf is searched in several places to allow the maximum flexibility. The order in which this places are checked is:

  1. URL: checks if the specified file name is a valid URL and if it is tries to get it.
  2. File system: if it is an absolute path (starts with a slash) it is interpreted from the root of the file system. Otherwise the directory where the JVM is being executed will be used as the base directory.
  3. User home directory: the home directory obtained with the user.home system property will be used as the base directory
  4. Context classpath
  5. System claspath

This behaviour is implemented by Jakarta's commons configuration. You can check the locate method of the ConfigurationUtils class for more information.