DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39946>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39946
Summary: NoClassDefFoundError when timeout set and junit.jar
loaded via <classpath>
Product: Ant
Version: 1.7Alpha (nightly)
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: Optional Tasks
AssignedTo: dev@ant.apache.org
ReportedBy: bmaurer@andrew.cmu.edu
Given the following build.xml:
<project name="x" default="x">
<target name="x">
<javac srcdir="." classpath="junit-4.1.jar" />
<junit fork="true" timeout="100">
<test name="x" />
<classpath>
<pathelement location="junit-4.1.jar" />
</classpath>
<formatter type="brief" usefile="false" />
</junit>
</target>
</project>
x.java:
import org.junit.Test;
public class x {
@Test public void foo () {
while (true) ;
}
}
And junit-4.1.jar in the directory, when executing the build, the following
error occurs:
[bmaurer@omega x]$ ../ant/apache-ant-1.7alpha/bin/ant
Buildfile: build.xml
x:
BUILD FAILED
/home/bmaurer/x/build.xml:4: Using loader
AntClassLoader[/home/bmaurer/x/junit-4.1.jar:/home/bmaurer/ant/apache-ant-1.7alpha/lib/ant-launcher.jar:/home/bmaurer/ant/apache-ant-1.7alpha/lib/ant.jar:/home/bmaurer/ant/apache-ant-1.7alpha/lib/ant-junit.jar]
on class org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter:
java.lang.NoClassDefFoundError: junit/framework/TestListener
Total time: 0 seconds
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
|