I am trying to set up my dev environment and we use ant script to build and deploy our application.
In my environment I have some configuration file (ADF model specific ) being created which are external to our web container (web context). Currently we zip that external directory and put it as a jar under WEB-INF/lib. But this is a time taking process for dev. What I want is when my web context starts up it should have that external directory structure in class path.
I am sure it can be done but what is the best way to do so. I am using weblogic.
Add the full path as a JVM property eg.
-DmyPath=/var/somePath
Then reference it from your code
String path = System.getProperty("myPath");
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.