[Anthill] catalina-ant.jar

Matt Raible matt at raibledesigns.com
Thu Feb 26 10:49:54 CST 2004


This should work on both Tomcat 4 and Tomcat 5:

http://raibledesigns.com/wiki/Wiki.jsp?page=TomcatAntTasks

HTH,

Matt

> -----Original Message-----
> From: anthill-bounces at lists.urbancode.com 
> [mailto:anthill-bounces at lists.urbancode.com] On Behalf Of 
> Asbjorn Hoiland Aarrestad
> Sent: Thursday, February 26, 2004 9:35 AM
> To: Anthill user list
> Subject: Re: [Anthill] catalina-ant.jar
> 
> 
> that's exactly what I've been trying to do :-) the same 
> code..... But it 
> does not work. anybody tried this wit Tomcat 5?
> 
> - asbjørn
> 
> Maciej Zawadzki wrote:
> 
> > Asbjorn,
> >
> > I have not tried the below scripts on Tomcat 5, but they work on
> > tomcat 4.
> >
> > --Maciej
> >
> >
> > DEPLOY SCRIPT 
> > ===========================================================
> > <?xml version="1.0"?>
> >
> > <project name="Project" basedir="." default="all">
> >
> >     <property name="name" value="${ant.project.name}"/>
> >     <property name="version" value="dev"/>
> >
> >     <!--
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >           deployment properties
> >
> > 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ~~~~~ -->
> >     <property name="manager.url" 
> value="http://localhost:8081/manager"/>
> >     <property name="manager.username" value="admin"/>
> >     <property name="manager.password" value="password"/>
> >     <property name="base.dir" location="${basedir}"/>
> >
> >     <!--
> > ###################################################################
> >           Main Targets
> >
> > ################################################################### 
> > -->
> >
> >     <!--
> > ===================================================================
> >           default target deploys the web app
> >
> > 
> ==============================================================
> ===== -->
> >     <target name="all">
> >         <taskdef name="deploy"
> > classname="org.apache.catalina.ant.DeployTask"/>
> >
> >         <deploy url="${manager.url}"
> >                 username="${manager.username}"
> >                 password="${manager.password}"
> >                 path="/${name}"
> >                 war="file:${base.dir}/${name}.war" />
> >     </target>
> >
> > </project> 
> > ==============================================================
> >
> >
> >
> > UNDEPLOY SCRIPT 
> > ==============================================================
> > <?xml version="1.0"?>
> >
> > <project name="Project" basedir="." default="all">
> >
> >     <property name="name" value="${ant.project.name}"/>
> >     <property name="version" value="dev"/>
> >
> >     <!--
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >           deployment properties
> >
> > 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ~~~~~ -->
> >     <property name="manager.url" 
> value="http://localhost:8081/manager"/>
> >     <property name="manager.username" value="admin"/>
> >     <property name="manager.password" value="password"/>
> >     <property name="base.dir" location="${basedir}"/>
> >
> >     <!--
> > ###################################################################
> >           Main Targets
> >
> > ################################################################### 
> > -->
> >
> >     <!--
> > ===================================================================
> >           default target deploys the web app
> >
> > 
> ==============================================================
> ===== -->
> >     <target name="all">
> >         <taskdef name="undeploy"
> > classname="org.apache.catalina.ant.UndeployTask"/>
> >
> >         <undeploy url="${manager.url}"
> >                 username="${manager.username}"
> >                 password="${manager.password}"
> >                 path="/${name}"/>
> >     </target>
> >
> > </project> 
> > ==============================================================
> > _______________________________________________
> > Anthill mailing list
> > Anthill at lists.urbancode.com 
> > http://lists.urbancode.com/mailman/listinfo/anthill
> 
> 
> _______________________________________________
> Anthill mailing list
> Anthill at lists.urbancode.com 
> http://lists.urbancode.com/mailman/listinfo/an> thill
> 





More information about the Anthill mailing list