Are you using Tomcat 4 or Tomcat 5? For Tomcat 5, the deploy task works great. However, for Tomcat 4, I have found there is no "perfect" solution. The install task for Tomcat 4 is for installing web applications found on the same server as Tomcat. The deploy task for Tomcat 4 is for installing web applications to a remote Tomcat server, but it does not have a "config" parameter. Therefore you cannot install a web application remotely using a context file.
Sure you can. Just put in META-INF and use the deploy task.
I have found the best method is to copy the WAR file and the context file to the same server that Tomcat is running on and then use the install task.
<scp file="${web.home}/META-INF/context.xml"
[EMAIL PROTECTED]:${catalina.home}/webapps/${a pp.name}.xml port="${scp.port}" password="${server.password}" trust="true"/>
<scp file="${dist.home}/${app.name}-${app.version}.war"
todir="[EMAIL PROTECTED]:${catalina.home}/webapps/${ app.name}.war" port="${scp.port}" password="${server.password}" trust="true"/>
<install url="${manager.url}" username="${manager.username}" password="${manager.password}" path="${app.path}" config="file:${catalina.home}/webapps/${app.name}.xml war="${app.name}.war"/>
Rob Abernethy Dynamic Edge, Inc.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
