This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
I have a jar file that has different configurations depending on which stage of development it is in. The build puts the right info in the jar in a properties file. I am having a hard time accessing the properties file if I put it anywhere else other that right next to the class that is using it.
I would like to put the properties file in the META-INF dir of the jar file. Here is the code from a method in a class in the jar. This works if the properties file is next to the class:
I have tried "/system.properties" and "/META-INF/system.properties" but they did not work. Absolute paths work. But our production machines have different paths.
How do I access the properties file in META-INF?
The squeaky wheel gets the grease. Well, that or replaced...