In my build file, i have a <classpath> declared inside my init target:
<classpath refid="project.class.path"/>
The path declaration is as follows:
<path id="project.class.path">
<pathelement path="${java.class.path}"/>
<fileset dir="${lib.build.dir}">
<include name="*.jar"/>
<include name="*.java"/>
</fileset>
</path>
The error message is below. Why can ant not find the <classpath> task? I
copied the code from the user manual example.
Using: ant1.3, win2k.
T Master.
OUTPUT:
prompt:/cygdrive/c/dev/build/$>ant.bat init
Buildfile: build.xml
init:
BUILD FAILED
c:\dev\build\build.xml:103: Could not create task of
type: classpath. Common solutions are to use taskdef to declare your task,
or, i
f this is an optional task, to put the optional.jar in the lib directory of
your
ant installation (ANT_HOME).
Total time: 0 seconds
prompt:/cygdrive/c/dev/build/$>