I am having problems using the junit task. Ant is not recognizing the junit as a task. I get this error message:
Could not create task or type of type: junit.
Ant could not find the task or a class this task
relies upon.
I have read the FAQ corresponding to this problem on the apache ant page, but it does not make sense. I am using ant version 1.6.2. I have removed the classpath environment variable completely. I also copied the junit.jar file to my ant/lib directory. I verified that the ant-junit.jar file is in the lib directory as well. In my build.xml file I declare the following path
<path id="library.junit.classpath">
<pathelement location="../../lib/junit.jar" />
</path>
<junit>
<classpath refid="library.junit.classpath" />
<formatter type="brief" usefile="false" />
<test name="BinStringTest" />
</junit>
Does anyone know what is going on? The FAQ solution confused me because I thought it was hinting at removing my ant-junit.jar file from the lib directory, and including in in a taskdef...was I misunderstanding the solution?
Could not create task or type of type: junit.
Ant could not find the task or a class this task
relies upon.
I have read the FAQ corresponding to this problem on the apache ant page, but it does not make sense. I am using ant version 1.6.2. I have removed the classpath environment variable completely. I also copied the junit.jar file to my ant/lib directory. I verified that the ant-junit.jar file is in the lib directory as well. In my build.xml file I declare the following path
<path id="library.junit.classpath">
<pathelement location="../../lib/junit.jar" />
</path>
<junit>
<classpath refid="library.junit.classpath" />
<formatter type="brief" usefile="false" />
<test name="BinStringTest" />
</junit>
Does anyone know what is going on? The FAQ solution confused me because I thought it was hinting at removing my ant-junit.jar file from the lib directory, and including in in a taskdef...was I misunderstanding the solution?