ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 10931] New: - JUnit Formatter Broken
Date Thu, 18 Jul 2002 01:23:07 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10931>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10931

JUnit Formatter Broken

           Summary: JUnit Formatter Broken
           Product: Ant
           Version: 1.5
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Core tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: jrlawson@sbcglobal.net
                CC: jrlawson@sbcglobal.net


When I upgrade to Ant 1.5 my JUnit targets (that worked perfectly under 
1.4.1) barf. It seems like I don't have an appropriate parser. What should I 
do????? I get the following trace:

maketestreports:
    [junit] Running 
test.com.mantra.huxley.ga.predicate.UnitTest_AndStopPredicate

BUILD FAILED
java.lang.LinkageError: loader constraints violated when linking 
org/w3c/dom/Document class
        at 
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(DocumentBui
lderFactoryImpl.java:88)
        at 
org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.getDocument
Builder(XMLJUnitResultFormatter.java:
93)
        at 
org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.startTestSu
ite(XMLJUnitResultFormatter.java:138)

        at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.fireStartTestSuite(
JUnitTestRunner.java:433)
        at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner
.java:279)
        at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(JUnitTask.jav
a:804)
        at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:55
1)
        at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:52
7)
        at org.apache.tools.ant.Task.perform(Task.java:317)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:334)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
        at org.apache.tools.ant.Main.runBuild(Main.java:610)
        at org.apache.tools.ant.Main.start(Main.java:196)
        at org.apache.tools.ant.Main.main(Main.java:235)


The target looks like this:

<target name="maketestreports" depends="init,compile">
    <junit printsummary="yes" haltonfailure="yes">
        <formatter type="xml" usefile="yes" />
        <classpath>
            <pathelement path="${temp.classes}" />
            <pathelement path="${model.classpath}" />
            <pathelement path="${product.classpath}" />
            <pathelement path="${java.class.path}" />
        </classpath>
        <batchtest todir="${metrics.dir}/unittests">
    	    <fileset dir="${classes.dir}">
      	        <include name="test/**/*UnitTest_*.class" />
    	    </fileset>
  	</batchtest>			
    </junit>
</target>

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message