Thank you very much, it started working :-) 

-----Original Message-----
From: James Abley [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 01, 2005 12:50 PM
To: Ant Users List
Subject: Re: Ant "Build Failed" for uninstall target

I think your url attribute on the undeploy element is wrong - you're
referencing the html version, rather than the other version. [1]

Try url="http://localhost:8080/manager";

[1] 
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/catalina/docs/api/org/ap
ache/catalina/ant/package-summary.html

James

On Thu, 2005-09-01 at 08:04, Srinivas Ivaturi wrote:
>             
>  
> 
> 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]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to