|
From: Mikkel D. <mi...@co...> - 2003-02-02 09:09:10
|
> Couldn't you modify the script which installs the service so that the > replacement is done > within the script rather than in the conf file. I have always done it > as follows: If you place > this in your script: > > --- > set APP_HOME=C:\app > set JAVA_HOME=C:\jdk1.3 > wrapper -i %APP_HOME%\wrapper.conf wrapper.java.command=%JAVA_HOME%\bin\java > --- > > Then the replacements all happen in the script so the parameters passed > to the wrapper > are all replaced. The full command that is then stored in the registry > looks like this: > --- > wrapper -s C:\app\wrapper.conf wrapper.java.command=C:\jdk1.3\bin\java > --- > At run time no environment variables are used so things work correctly. > This should give > you the exact same functionality as you are requesting? > I could, but I wont be able to use %APP_HOME% in the .conf file, and I will have to specify everything depending on %APP_HOME% on the comand line. In my case about 10-15 variables, such as java.classpath stuff. Besides when changing the classpath, you I will have to reinstall the service for it to take effect. /Mikkel > Cheers, > Leif > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > |