Here's what I do (only relevant targets below)...
<presetdef name="preset-catalina-deploy">
<catalina-deploy
url="${manager.url}"
username="${manager.username}"
password="${manager.password}"
path="/${app.war.name}" />
</presetdef>
<target name="catalina-deploy" depends="war.jar,-catalina.init"
description="Deploy webapp remotely from war file" >
<preset-catalina-deploy
update="true"
war="${app.war.url.file}" />
</target>
<target name="catalina-install" depends="war,-catalina.init"
description="Deploy a webapp locally from a war directory" >
<preset-catalina-deploy
config="${app.war.ccf.url.file}"
localWar="${app.war.url.dir}" />
</target>
<target name="catalina-reinstall" depends="catalina-undeploy, catalina-install"
description="convenience target calling catalina-undeploy, then
catalina-install" />
Jake
Quoting D Sledge <[EMAIL PROTECTED]>:
> I've got two custom tasks for tomcat's manager app:
>
>
>
> <taskdef name="deploy" classname="org.apache.catalina.ant.DeployTask"/>
> <taskdef name="install" classname="org.apache.catalina.ant.InstallTask"/>
>
> <target name="deploy" description="Install web application">
> <deploy url="${url}" username="${username}" password="${password}"
> path="${path}" war="file:${env.AXIS_HOME}/webapps/axis"/>
> </target>
>
> <target name="install" description="Install web application">
> <install url="${url}" username="${username}" password="${password}"
> path="${path}" war="file:${env.AXIS_HOME}/webapps/axis"/>
> </target>
>
>
>
> After browsing through the documentation, I've found that the install task
> has been depreciated in
> favor of the deploy task. However, deploy gives me the following exception
> message, while install
> works fine:
>
>
>
> deploy:
> [deploy] FAIL - Encountered exception java.util.zip.ZipException: Could
> not find End Of Central
> Directory
>
>
>
> Since deploy is the favored means of deploying a web app, I want to use it
> instead, but I can't
> figure out why I'm getting this exception message.
>
> Linux Red Hat 9.0+
> JRockit 1.4.2_04
> tomcat 5.0.27
>
>
>
>
> __________________________________
> Do you Yahoo!?
> New and Improved Yahoo! Mail - 100MB free storage!
> http://promotions.yahoo.com/new_mail
>
> ---------------------------------------------------------------------
> 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]