Any idea why the following Ant deploy task is not working for me?
Software configuration:
Microsoft Windows XP [Version 5.1.2600]
Java 2 SDK 1.4.2
Apache Ant version 1.5.2 compiled on May 30 2003
Tomcat 5.0.5 Alpha
<!-- build.xml -->
<taskdef name="deploy" classname="org.apache.catalina.ant.DeployTask"/>
<deploy url="${manager.url}"
username="${manager.username}"
password="${manager.password}"
path="${app.path}"
war="file:/C:/bond.war"/>
The WAR file bond.war is in C:\bond.war.
Ant output:
---
U:\Derek\Project\BondTrader\BondOrderManager>ant deploy
Buildfile: build.xml
prepare:
compile:
deploy:
[deploy] FAIL - Encountered exception java.net.MalformedURLException: unknown
protocol: c
[deploy] OK - Deployed application at context path /bond
BUILD FAILED
file:U:/Derek/Project/BondTrader/BondOrderManager/build.xml:380: FAIL - Encountered
exception java.net.MalformedURLException: unknown protocol: c
Total time: 1 second
---
Thanks,
Derek
-----Original Message-----
From: Steph Richardson [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 11:37 AM
To: Tomcat Users List
Subject: RE: ANT tasks for management console
Look for catalina-ant.jar - probably in $TOMCAT_HOME/server/lib. Copy it to your
$ANT_HOME/lib. We use these in our build files - I included the XML fragments from our
build files if they're useful ( obviously you need to define a bunch of props used in
these examples ) :
<taskdef name="deploy" classname="org.apache.catalina.ant.DeployTask" />
<taskdef name="undeploy" classname="org.apache.catalina.ant.UndeployTask" />
<taskdef name="list" classname="org.apache.catalina.ant.ListTask" />
<taskdef name="start" classname="org.apache.catalina.ant.StartTask" />
<taskdef name="stop" classname="org.apache.catalina.ant.StopTask" />
<taskdef name="reload" classname="org.apache.catalina.ant.ReloadTask"/>
<!-- ****************** Tomcat tasks ****************** -->
<target name="reload">
<!-- reload the web application in tomcat -->
<echo message="Reloading tomcat web app on port : ${tomcat.port}" />
<reload url="${tomcat.manager}" path="/${context-path}"
username="${tomcat.usr}" password="${tomcat.pwd}" />
</target>
<target name="deploy"
description="Deploys a Web application">
<deploy url="${tomcat.manager}" username="${tomcat.usr}" password="${tomcat.pwd}"
path="/${context-path}" war="file:${war-path}"
/>
</target>
<target name="undeploy"
description="Undeploys a Web application">
<undeploy url="${tomcat.manager}" username="${tomcat.usr}"
password="${tomcat.pwd}"
path="/${context-path}"
/>
</target>
<target name="redeploy"
description="Undeploys and deploys a Web aplication">
<antcall target="undeploy" />
<antcall target="deploy" />
</target>
<target name="list"
description="Lists Web applications">
<echo message="Listing the applications...."/>
<list
url="${tomcat.manager}"
username="${tomcat.usr}"
password="${tomcat.pwd}"
/>
</target>
<target name="start"
description="Starts a Web application">
<echo message="Starting the application...."/>
<start
url="${tomcat.manager}"
username="${tomcat.usr}"
password="${tomcat.pwd}"
path="/${context-path}"
/>
</target>
<target name="stop"
description="Stops a Web application">
<echo message="Stopping the application...."/>
<stop
url="${tomcat.manager}"
username="${tomcat.usr}"
password="${tomcat.pwd}"
path="/${context-path}"
/>
</target>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 31, 2003 3:38 AM
> To: [EMAIL PROTECTED]
> Subject: ANT tasks for management console
>
>
> Hi,
>
> Catalina 4.1.24 contains some ANT-tasks to call the management
> application to deploy, reload and delete apps. Where can I find these
> tasks to include them in my build?
>
> Juraj
>
> Mit freundlichen Gr�ssen
>
> Juraj Lenharcik
> T-Systems International GmbH
> Systems Integration 1
> eFactory Solutions
> Business Unit Manufacturing Solutions
> Hausadresse: Fasanenweg 5, 70771 Leinfelden-Echterdingen
> phone: +49 (711) 972 46185
> fax: +49 (711) 972 48109
>
> mailto:[EMAIL PROTECTED]
> www.t-systems.com <http://www.t-systems.com>
> www.efactory-solutions.com <http://www.efactory-solutions.com>
>
>
>
> ---------------------------------------------------------------------
> 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]