Re: how to access tomcat conf dir from my webapp

2011-01-25 Thread Konstantin Kolinko
2011/1/25 Stevo Slavić : > String tomcatHomePath = System.getenv("CATALINA_HOME"); The above works only when starting Tomcat with .sh/.bat files and only when CATALINA_BASE does not differ from CATALINA_HOME (see RUNNING.txt). The correct alternative would be to use System.getProperty("catalina.

Re: how to access tomcat conf dir from my webapp

2011-01-25 Thread Stevo Slavić
String tomcatHomePath = System.getenv("CATALINA_HOME"); // or CATALINA_BASE, where CATALINA_HOME/CATALINA_BASE is name of environment variable set to point to tomcat installation home or instance base java.io.File tomcatConfDir = new java.io.File(tomcatHomePath, "conf"); Regards, Stevo. On Tue,

how to access tomcat conf dir from my webapp

2011-01-25 Thread alexis
Hello, usually i store my custom config files in WEB-INF, but i need now to store a file (a binary file containing a license for my app) inside the tomcat conf dir. Main purpose for this is avoid the need to rebuild a war every time i license a different customer. So, in this way, application t