I wish to use the Tomcat install/deploy tasks from catalina-ant.jar to deploy a webapp to a remote app server.
After installing Ant using the instructions found here, my ant folder is configured as:
/usr/local/ant
My "Ant Home" has also been set to that directory through Eclipse. I copied catalina-ant.jar to my ant/lib folder.
My build.xml contains the following:
...
<path id="catalina-ant-classpath">
<fileset dir="${ant.home}/lib">
<include name="catalina-ant.jar"/>
</fileset>
</path>
<taskdef name="install" classname="org.apache.catalina.ant.InstallTask">
<classpath refid="catalina-ant-classpath"/>
</taskdef>
...
Yet my build fails with the following error:
build.xml:83: taskdef class org.apache.catalina.ant.InstallTask cannot be found
Could there be a permissions issue going on with my /usr/local/ant directory? Is there a better place to put catalina-ant.jar?
EDIT: Strangely enough, if I put the jar somewhere else (say, in a directory inside of my user folder) and change the path to it in my build.xml it works. Ideas?