ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Your Name" <>
Subject ant with tomcat tasks
Date Thu, 09 Oct 2003 16:02:59 GMT
I have the following in my build.xml
<target name="init">
	<available file="catalina-ant.jar" property="tomcat-task"
filepath="${java.class.path}" />
	<fail unless="tomcat-task">Tomcat Ant tasks are not in the classpath</fail>
	<available classname="" property="test-task2" />
	<fail unless="test-task2">Ant couldn't find itself</fail>
	<available classname="org.apache.catalina.ant.StopTask"
property="test-task" />
	<fail unless="test-task">Tomcat task not found though the library

	<taskdef name="stop" classname="org.apache.catalina.ant.StopTask" />
	<taskdef name="start" classname="org.apache.catalina.ant.StartTask" />
	<taskdef name="install" classname="org.apache.catalina.ant.InstallTask" />
	<taskdef name="remove" classname="org.apache.catalina.ant.RemoveTask" />
when I execute ant as: "ant -f build.xml init", I get an error, "Tomcat
task not found though the library was". Debug output produces the following:
[available] Could not load dependent class "org/apache/tools/ant/Task"
for class "org.apache.catalina.ant.StopTask"
[available] Unable to load class org.apache.catalina.ant.StopTask to set
property test-task
My classpath is:
I'm running windows 2000 pro sp4, java, ant 1.5.4.

Please help.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message