jQuery in Action, 2nd edition*
The moose likes Ant, Maven and Other Build Tools and the fly likes Ant Build Failed for uninstall Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Ant Build Failed for uninstall" Watch "Ant Build Failed for uninstall" New topic
Author

Ant Build Failed for uninstall

Srinivas Ivaturi
Ranch Hand

Joined: Jan 28, 2003
Posts: 50
Hi

I am facing a varitey 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.
Srinivas Ivaturi
Ranch Hand

Joined: Jan 28, 2003
Posts: 50
Can anyone look into this please.

Thanks
Srinivas Ivaturi.
 
Don't get me started about those stupid light bulbs.
 
subject: Ant Build Failed for uninstall