Hi -
I am running with fork=true for my batchtest tag. I've also tried setting
fork=true for the junit tag and all permutations between junit/batchtest
defining fork=true. They all result in the same verify error. BTW this is
true for 1.4 and 1.5.
<target depends="init,all" description="Execute all JUnit Tests"
name="junit">
<junit printsummary="yes" haltonfailure="yes">
<classpath>
<pathelement location="${build}" />
<pathelement path="${java.class.path}" />
</classpath>
<formatter type="plain" />
<batchtest fork="true" todir="${reports.tests}" haltonfailure="no"
>
<fileset dir="${src}">
<include name="**/*Test*.java" />
<exclude name="**/TestOfAllTest.java" />
<exclude name="**/PerformanceTest.java" />
</fileset>
<formatter type="xml" />
</batchtest>
</junit>
> -----Original Message-----
> From: Dominique Devienne [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 13, 2002 1:46 PM
> To: 'Ant Users List'
> Subject: RE: Junit Task, VerifyError, Log4J LogManager
>
>
> Add the fork=true to <junit>. It might solve it. --DD
>
> -----Original Message-----
> From: James Krygowski [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 13, 2002 12:33 PM
> To: [EMAIL PROTECTED]
> Subject: Junit Task, VerifyError, Log4J LogManager
>
> Hi All-
>
> I've got a suite of JUnit tests that I'd like to run in Ant using
> the JUNIT
> task. I've set up the task and it does run all my tests,
> however, any tests
> that include Log4J fail with the following (output from the Ant Junit
> Report):
>
> Testcase: testGetInstanceOfFactory took 0.24 sec
> Caused an ERROR
> (class: org/apache/log4j/LogManager, method: <clinit> signature: ()V)
> Incompatible argument to function
> java.lang.VerifyError: (class: org/apache/log4j/LogManager,
> method: <clinit>
> signature: ()V) Incompatible argument to function
>
> If I run the same tests outside of Ant they run just fine. I've
> checked my
> classpath and there is only one instance of the Log4J jar on the
> classpath.
> The classpath being used by Ant is identical to the classpath in
> the IDE I'm
> using to run the unit tests.
>
> Is this some kind of strange Ant class loader issue? Does anyone have a
> suggestion for fixing this?
>
> thanks,
>
> jk
>
>
> --
> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>