Re: Can I pass values to application configuration file on command line

2008-07-23 Thread Bill Barker
"Jim Cant" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Is there a way I can use replaceable parameters in an application's xml > configuration file and pass a value in on the Tomcat command line. In > particular, I would like to set the value of docBase so that I can launch > t

Re: Can I pass values to application configuration file on command line

2008-07-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jim, Jim Cant wrote: | Is there a way I can use replaceable parameters in an application's xml | configuration file and pass a value in on the Tomcat command line. In | particular, I would like to set the value of docBase so that I can launch | tomc

RE: Can I pass values to application configuration file on command line

2008-07-23 Thread robert.purvis
You could use a script to edit your appconfig.xml with the value. Try the "replace" command that comes with MySQL: APP_PATH=/my/app/lives/here replace "to-be-replaced" $APP_PATH -- appconfig.xml Then do your tomcat startup as you have suggested by setting a system property on the command line wit