I have a legacy application that reads property files on initialization. I can bundle them into a .jar file (properties.jar) and put the jar in my .war file, but I'm not sure how to get at the properties.jar in the .war file at runtime. Our previous deployment tools did something equivalent to expanding macros in the web.xml file (but not in a web.xml file). For example, if 'deployDir=$DEPLOY_DIR' were in the web.xml file, it would be expanded to a real path, and the java code could then access the $deployDir property.
Is there something equivalent to this in the J2EE Web Container methodology, or is there an alternative approach?