I need to keep a property file in a filesystem and it must be included when I'm building my project. I have a ANT script to build it my program as .jar, but my jar file don't have any symptoms of referring to that config file when i use it in a app server.
This is my ANT script to include my properties file in classpath with dirset
<path id="project-classpath">
<fileset dir="/var/edt/dependencies" includes="*.jar" />
<dirset dir="/var/edt/config" />
<pathelement path="/var/edt/config" />
</path>
PS. I'm trying to acheive this to keep my configuration files away from app server so any change in configuration will not impact on my program as well it will dynamically load my configurations and avoid a server restart.
Any help is appreciated.