Hi
I am facing a variety problem with ANT. I have written an ant Script
which Installs me a WAR file into Tomcat. I have one more Task to
uninstall also. When I use uninstall It is giving me some HTML dump on
my command line and at the end it is saying BUILD FAILED. But When I
check with Admin pages WAR files is uninstalled. What could be the
problem with Script. Here I am pasting the script I am using.
<!-- Tomcat Ant Tasks -->
<project name="webmodulebuilder" default="uninstall" basedir=".">
<taskdef file="C:/tomcatTasks.properties">
<classpath>
<pathelement path="C:\Program Files\Apache Software Foundation\Tomcat
5.0\server\lib\catalina-ant.jar"/>
</classpath>
</taskdef>
<target name="uninstall" description="Remove application from Tomcat" >
<undeploy url="http://localhost:8080/manager/html"
username="admin"
password="admin"
path="/TestJ2EE"
/>
</target>
</project>
Tomcat.Properties:
deploy=org.apache.catalina.ant.DeployTask
undeploy=org.apache.catalina.ant.UndeployTask
remove=org.apache.catalina.ant.RemoveTask
reload=org.apache.catalina.ant.ReloadTask
start=org.apache.catalina.ant.StartTask
stop=org.apache.catalina.ant.StopTask
list=org.apache.catalina.ant.ListTask
Thanks
Srinivas Ivaturi.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]