Adding external .properties files to a MANIFEST classpath
Hi all;
I want to package my application as an executable jar (let's call it app.jar), but leave the config (.properties) file outside of it, so it can easily be edited after deployment. The config file should be added to the classpath, so that it can be loaded with ClassLoader.getResourceAsStream().
However, even though I add the directory where the config file lives to the classpath in the manifest of app.jar, it is not found by getResourceAsStream(). But if I package the config file in a separate jar (config.jar), and adds config.jar to the classpath of app.jar's manifest, it works.
Could someone explain why the config file is not picked up when not in a jar?

