|
From: Leif M. <le...@ta...> - 2003-06-06 00:44:54
|
You should be able to launch the Wrapper from Ant using the exec task. When launching the Wrapper, specify all of the properties that you wish to override on the Wrapper's command line. The biggest problem is going to be the classpath as the Wrapper expects it to be broken up into its individual elements. But if most cases, your jar files will all be in a specific directory, so you can work around this using wild cards. Try a command line like the following: Wrapper -i src/conf/wrapper.conf wrapper.java.classpath.1=src/lib/*.jar etc... Another option is to just include the entire classpath in a single classpath property. This should work. The wrapper breaks them up so that it can cleanly build the classpaths at runtime based on the current platform. Other properties can be set in the same way. Hope this helps. Cheers, Leif Guarav Mangalick wrote: > Hi, > > I am using ANT build scripts to install my applications as NT service > using this WRAPPER. I can do this currently by running the statement > "wrapper -i wrapper.conf". > > Question is how can i modify this so the WRAPPER can use the classpath > and other properties set in ANT scripts. (I don't want to set the > classpath and other general properties in wrapper.conf AGAIN. > > Is there a way NOT to use the wrapper.conf at all and use ANT script > parameters instead???. > > Thanks in advance. > > gmangali |