Hi Erik- when i copy my optional.jar over to my idea lib directory, i end up with a verify error:
java.lang.VerifyError: (class: org/apache/tools/ant/taskdefs/email/EmailTask, method: execute signature: ()V) Incompatible object argument for function call which seems kind of strange. jk > -----Original Message----- > From: Erik Hatcher [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 13, 2002 2:32 PM > To: Ant Users List > Subject: Re: Junit Task, VerifyError, Log4J LogManager > > > I'm running 1.5 (well, 1.6alpha, actually) in IDEA. Just copy ant.jar > and optional.jar over to IDEA's lib directory, and of course any other > dependencies. Basically my IDEA lib directory is mostly a mirror image > of my ANT_HOME/lib directory. Ugly duplication, but it works fine for me. > > James Krygowski wrote: > > Check that--- i can get it to work using Ant 1.5, but not 1.4.... > > unfortunately I can't get 1.5 to run in IDEA > > > > > >>-----Original Message----- > >>From: James Krygowski [mailto:[EMAIL PROTECTED]] > >>Sent: Tuesday, August 13, 2002 2:00 PM > >>To: Ant Users List > >>Subject: RE: Junit Task, VerifyError, Log4J LogManager > >> > >> > >>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]> > > > > -- > 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]>
