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="org.apache.tools.ant.Task" 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 was</fail>
<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" /> </target> ---- 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: ---- C:\j2sdk1.4.2_01\lib;c:\j2sdkee1.3.1\lib;C:\j2sdk1.4.2_01\lib\tools.jar;C:\j2sdk1.4.2_01\jre\lib\rt.jar;C:\j2sdk1.4.2_01\jre\lib\ext\log4j-1.2.8.jar;C:\j2sdk1.4.2_01\jre\lib\ext\catalina-ant.jar;c:\j2sdkee1.3.1\lib\j2ee.jar; ---- I'm running windows 2000 pro sp4, java 1.4.2.01, ant 1.5.4. Please help. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]