I want to make my application config accessible outside of the application jar file.
So I want this structure.
Folder
-> myapp.jar
-> config.properties
So when I call my jar file via
java -jar myapp.jar I want it to use "config.properties".
But I have the following problem.
When I build myapp.jar the config.properties gets placed inside the myapp.jar. This means that if I want to change any of the properties in my conig.properties I cannot do this because its packaged inside the jar file.
Please could someone tell me how to get my config.properties packaged OUTSIDE my jar file.
Just to re-iterate
Current situation
Folder
-> myapp.jar (config.properties inside the jar)
Target situation
Folder
-> mypp.jar
-> config.properties