Skip to content

Instantly share code, notes, and snippets.

@catphive
Created March 28, 2014 23:37
Show Gist options
  • Save catphive/9845270 to your computer and use it in GitHub Desktop.
Save catphive/9845270 to your computer and use it in GitHub Desktop.
<path id="compile.classpath">
<!-- Include all elements that Tomcat exposes to applications -->
<fileset dir="${catalina.home}/bin">
<include name="*.jar"/>
</fileset>
<pathelement location="${catalina.home}/lib"/>
<fileset dir="${catalina.home}/lib">
<include name="*.jar"/>
</fileset>
</path>
<taskdef resource="org/apache/catalina/ant/catalina.tasks">
<classpath refid="compile.classpath"/>
</taskdef>
<target name="install" depends="compile"
description="Install application to servlet container">
<!--<echoproperties/>-->
<deploy url="${manager.url}"
username="${manager.username}"
password="${manager.password}"
path="${app.path}"
localWar="file://${build.home}"/>
</target>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment