|
From: Sal I. <sal...@sy...> - 2003-06-05 21:58:54
|
MessageFirst option is to use the replace target on wrapper.conf. you know which variables to substitue and you know their values (after all you are in build.xml). But your major problem is to tokenize your single-line classpath into multi-wrapper.java.classpath.n Second option is to do it the other way around: define a build.xml that sets up classpaths and so forth, & runs your app from the "run" target, for example. than have wrapper call "ant run" by setting up wrapper.conf appropriately. so that the wrapper configuration is minimal & you leave all your setting up in your ant script. make sure that ANT_HOME is setup as a system variable and that %ANT_HOME%/bin is in your system classpath. benefits of this approach are that 1. you mainain uniform scripts to launch your app (they're all build.xml's) 2. wrapper.conf are identical cross-applications 3. you spend less time on configurations i'm thinking of convering my application suite this way. Too bad that keeping things clean comes at the cost of so many layers (wrapper+ant) & jars loaded (wrapper.jar is small, but ant can be large) If you're looking for an installer, consider this: http://nsis.sourceforge.net/ -----Original Message----- From: wra...@li... [mailto:wra...@li...]On Behalf Of Guarav Mangalick Sent: Thursday, June 05, 2003 2:39 PM To: wra...@li... Subject: [Wrapper-user] Using ANT scripts to invoke wrapper 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 |