Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ant Build Failed for uninstall

 
Srinivas Ivaturi
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone look into this please.

Thanks
Srinivas Ivaturi.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic