From: Alan C F. <li...@tw...> - 2003-03-05 10:24:15
|
which version of junit are you using ? Could it be a different version than the junit task was compiled against ? A. -------------------------------- alan @ | afrancis @ twelve71.com | thoughtworks.com -------------------------------- ----- Original Message ----- From: Kapoor Anshul To: 'jun...@li...' Sent: Wednesday, March 05, 2003 10:11 AM Subject: [Junit-devel] Junit with ANT. Hi All, I am facing problems with running junit with ANT. i get error.. =============================== BUILD FAILED /dvlp/lib/arbor/arborapi/arborapi-build.xml:150: Could not create task of type: junit due to java.lang.VerifyError: (class: o rg/apache/tools/ant/taskdefs/optional/junit/JUnitTask, method: getOutput signature: (Lorg/apache/tools/ant/taskdefs/optional/ junit/FormatterElement;Lorg/apache/tools/ant/taskdefs/optional/junit/JUnitTe st;)Ljava/io/File;) Incompatible type for get --- Nested Exception --- java.lang.VerifyError: (class: org/apache/tools/ant/taskdefs/optional/junit/JUnitTask, method: getOutput signature: (Lorg/apa che/tools/ant/taskdefs/optional/junit/FormatterElement;Lorg/apache/tools/ant /taskdefs/optional/junit/JUnitTest;)Ljava/io/File ;) Incompatible type for get at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at org.apache.tools.ant.Project.createTask(Project.java:439) at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:83) at org.apache.tools.ant.Target.execute(Target.java:152) at org.apache.tools.ant.Project.runTarget(Project.java:898) at org.apache.tools.ant.Project.executeTarget(Project.java:536) at org.apache.tools.ant.Project.executeTargets(Project.java:510) at org.apache.tools.ant.Main.runBuild(Main.java:421) at org.apache.tools.ant.Main.main(Main.java:149) ================================== extract from my build.xml is .. ================================== <target name="test" depends="init" description="Executes the unit tests"> <taskdef name="junit" classpathref="test.classpath" classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask" /> <junit fork="yes" haltonfailure="yes" printsummary="on"> <test name="test.be.telenet.arborapi.TestAllArborAPI" haltonfailure="yes" todir="${junit.results}"/> <formatter type="xml"/> <classpath refid="test.classpath"/> </junit> <junitreport todir="${test.reports}"> <fileset dir="${test.reports}"> <include name="TEST-*.xml"/> </fileset> <report todir="${test.reports}"/> </junitreport> </target> ================================== can someone thorw some light on this ? Regards, -A. +32.15.33.23.80 ************************************************************* Dit e-mail bericht inclusief eventuele ingesloten bestanden kan informatie bevatten die vertrouwelijk is en/of beschermd door intellectuele eigendomsrechten. Dit bericht is uitsluitend bestemd voor de geadresseerde(n). Elk gebruik van de informatie vervat in dit bericht (waaronder de volledige of gedeeltelijke reproductie of verspreiding onder elke vorm) door andere personen dan de geadresseerde(n) is verboden. Indien u dit bericht per vergissing heeft ontvangen, gelieve de afzender hiervan te verwittigen en dit bericht te verwijderen. This e-mail and any attachment thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the addressees. Any use of the information contained herein (including but not limited to total or partial reproduction or distribution in any form) by other persons than the addressees is prohibited. If you have received this e-mail in error, please notify the sender and delete its contents. ************************************************************* |