<!-- package .war -->
<target name="package" depends="build" description="Packages the WAR file">
<echo message="Packageing the .war ...." />
<delete file="dist/${war-file}" />
<jar jarfile="dist/${war-file}">
<fileset dir="${build-path}" includes="WEB-INF/**" />
</jar>
</target>
<!-- install -->
<target name="install" depends="build" description="Installs a Web application">
<echo message="Installing the application...." />
<install url="${url}" username="${username}" password="${password}" path="/${context-path}" war="file:${build-path}" />
</target>
<!-- deploy -->
<target name="deploy" depends="build, package" description="Deploys a Web application">
<echo message="Deploying the application...." />
<deploy url="${url}" username="${username}" password="${password}" path="/${context-path}" war="file:${example-path}/dist/${war-file}" />
</target>
<!-- undeploy -->
<target name="undeploy" description="Undeploys a Web application">
<echo message="Undeploying the application...." />
<undeploy url="${url}" username="${username}" password="${password}" path="/${context-path}" />
</target>
<!-- list -->
<target name="list" description="Lists a Web application">
<echo message="Listing the application...." />
<list url="${url}" username="${username}" password="${password}" />
</target>
<!-- remove -->
<target name="remove" description="Removes a Web application">
<echo message="Removing the application...." />
<remove url="${url}" username="${username}" password="${password}" path="/${context-path}" />
</target>
<!-- reload -->
<target name="reload" depends="setup-web-inf" description="Reloads a Web application">
<echo message="Reloading the application...." />
<reload url="${url}" username="${username}" password="${password}" path="/${context-path}" />
</target>
<target name="install"
description="Installs a Web application">
<echo message="Installing the application...."/>
<install
url="${url}"
username="${username}"
password="${password}"
path="/${context.path}"
war="file:${build.path}"
/>
</target>
<target name="deploy" depends="build, package"
description="Deploys a Web application">
<echo message="Deploying the application...."/>
<deploy
url="${url}"
username="${username}"
password="${password}"
path="/${context.path}"
war="file:${example.path}/dist/${war.file}"
/>
</target>
<target name="undeploy"
description="Undeploys a Web application">
<echo message="Undeploying the application...."/>
<undeploy
url="${url}"
username="${username}"
password="${password}"
path="/${context.path}"
/>
</target>
<target name="list"
description="Lists a Web application">
<echo message="Listing the application...."/>
<list
url="${url}"
username="${username}"
password="${password}"
/>
</target>
<target name="remove"
description="Removes a Web application">
<echo message="Removing the application...."/>
<remove
url="${url}"
username="${username}"
password="${password}"
path="/${context.path}"
/>
</target>
<target name="reload" depends="copy-to-web-inf"
description="Reloads a Web application">
<echo message="Reloading the application...."/>
<reload
url="${url}"
username="${username}"
password="${password}"
path="/${context.path}"
/>
</target>