<?xml version="1.0" encoding="UTF-8"?>
<!--

Build file for the StrutsCX deployment in a Tomcat 4.1.24 Servlet Container

Version: v1.1 2003.07.17
Author:	 Bernhard Woehrlin, IT.CappuccinoNet.com

-->
<project name="smschat-setup-live" default="list" basedir=".">
  <!-- Configure the directory into which the web application is built -->
  <property name="prompt.company" value="IT.CappuccinoNet.com" />
  <property name="project.name" value="strutscx" />
  <property name="path.context" value="/${project.name}" />
  <property name="path.local.war" value="D:/TECHNIC/StrutsCX-staging/build/${project.name}.war" />
  <property name="path.server.remote.manager" value="http://localhost:8080/manager" />
  <property name="username" value="" />
  <property name="password" value="" />
  <!-- Configure the custom Ant tasks for the Manager application -->
  <taskdef name="deploy" classname="org.apache.catalina.ant.DeployTask" />
  <taskdef name="install" classname="org.apache.catalina.ant.InstallTask" />
  <taskdef name="list" classname="org.apache.catalina.ant.ListTask" />
  <taskdef name="reload" classname="org.apache.catalina.ant.ReloadTask" />
  <taskdef name="remove" classname="org.apache.catalina.ant.RemoveTask" />
  <taskdef name="resources" classname="org.apache.catalina.ant.ResourcesTask" />
  <taskdef name="roles" classname="org.apache.catalina.ant.RolesTask" />
  <taskdef name="start" classname="org.apache.catalina.ant.StartTask" />
  <taskdef name="stop" classname="org.apache.catalina.ant.StopTask" />
  <taskdef name="undeploy" classname="org.apache.catalina.ant.UndeployTask" />
  <!-- Start -->
  <target name="start" description="Start application on servlet container">
    <start url="${path.server.remote.manager}" username="${username}" password="${password}" path="${path.context}" />
  </target>
  <!-- Stop -->
  <target name="stop" description="Stop application on servlet container">
    <stop url="${path.server.remote.manager}" username="${username}" password="${password}" path="${path.context}" />
  </target>
  <!-- List -->
  <target name="list" description="List installed web applications">
    <list url="${path.server.remote.manager}" username="${username}" password="${password}" />
  </target>
  <!-- Roles -->
  <target name="roles" description="List all the user roles">
    <roles url="${path.server.remote.manager}" username="${username}" password="${password}" />
  </target>
  <!-- Resources -->
  <target name="resources" description="List all the JNDI resources">
    <list url="${path.server.remote.manager}" username="${username}" password="${password}" />
  </target>
  <!-- Reload -->
  <target name="reload" description="Reload web application on servlet container">
    <reload url="${path.server.remote.manager}" username="${username}" password="${password}" path="${path.context}" />
  </target>
  <!-- no effect to the server.xml -->
  <!-- Install -->
  <target name="install" description="Deploy web application">
    <install url="${path.server.remote.manager}" username="${username}" password="${password}" path="${path.context}" war="jar:file:/${path.local.war}!/" />
  </target>
  <!-- Remove -->
  <target name="remove" description="Deploy web application">
    <remove url="${path.server.remote.manager}" username="${username}" password="${password}" path="${path.context}" />
  </target>
  <!-- this has effect as well on the server.xml and the *.war and application -->
  <!-- Deploy -->
  <target name="deploy" description="Deploy web application">
    <deploy url="${path.server.remote.manager}" username="${username}" password="${password}" path="${path.context}" war="file:/${path.local.war}" />
  </target>
  <!-- Undeploy -->
  <target name="undeploy" description="Undeploy web application">
    <undeploy url="${path.server.remote.manager}" username="${username}" password="${password}" path="${path.context}" />
  </target>
</project>

