ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: can't find classpath task
Date Tue, 07 Nov 2000 08:40:17 GMT
>>>>> "JM" == John Minne <> writes:

 JM> I am getting the error: "Could not create task of type classpath
 JM> because I can't find it in the list task class definitions."

 JM> I didn't think that classpath is considered a task...

And it isn't.

Are you sure

 JM> <target name="compile" depends="prepare"> 
 JM>   <javac srcdir="src" destdir="${deploy.home}/WEB-INF/classes"
 JM>          debug="on" optimize="off" deprecation="off"> 
 JM>     <classpath> 
 JM>       <path refid="mb2.class.path"/> 
 JM>       <pathelement location="${deploy.home}/WEB-INF/classes"/> 
 JM>     </classpath> 
 JM>   </javac> 
 JM> </target>

is a literal copy of your build file? It works for me. 

My wild guess would be that you have accidently terminated the javac
start tag with /> so that <classpath> is at the same level like
<javac> and not a child element of it.


View raw message