Hi, Thanks for your reply, but unfortunately, that's not the case.
lrwxrwxrwx 1 david david 17 2006-12-20 08:34 ant -> apache-ant-1.7.0/ drwxr-xr-x 6 david david 4.0K 2006-12-13 12:15 apache-ant-1.7.0 this is in the javastuff directory. I normally symlink in stuff so I can swap out versions easily... -=david=- Peter Reilly-2 wrote: > > On 12/20/06, David Harrigan <[EMAIL PROTECTED]> wrote: >> >> Hi, >> >> So, trying out Ant 1.7.0. When I run my unit tests I get these errors >> that >> do not appear when I run using Ant 1.6.5 (note: nothing has changed, just >> the version of Ant that I'm using...) >> >> [junit] Exception in thread "main" java.lang.NoSuchMethodError: >> org.apache.tools.ant.util.FileUtils.close(Ljava/io/Writer;)V >> [junit] at >> org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.endTestSuite(XMLJUnitResultFormatter.java:174) >> [junit] at >> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.fireEndTestSuite(JUnitTestRunner.java:620) >> >> More detail can be found here: >> >> http://attachr.com/5697 >> >> I've got JUnit 4.1 in my classpath. >> >> I suspect a classpath issue...would i be right? > > Yes, > You are mixing ant1.6 and ant1.7.0 jars: > [junit] > '/home/david/javastuff/eclipse-3.3m4/workspace/libs/activation/1.1/activation.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/antlr/2.7.5/antlr.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/apache/ant/contrib/1.0b2/ant-contrib.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/apache/derby/10.2.1.6/derby.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/apache/derby/10.2.1.6/derbyclient.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/apache/derby/10.2.1.6/derbynet.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/apache/derby/10.2.1.6/derbytools.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/asm-attrs/1.0/asm-attrs.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/asm/1.0/asm.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/cglib/2.1/cglib.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/commons-collections/2.1.1/commons-collections.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/commons-dbcp/1.2.1/commons-dbcp-1.2.1.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/commons-lang/2.1/commons-lang.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/commons-logging/1.0.4/commons-logging.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/commons-pool/1.3/commons-pool-1.3.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/connector/1.0/connector.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/dom4j/1.6/dom4j.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/ehcache/1.1/ehcache.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/enterprisedt/1.0/enterprisedt.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/hibernate/3.0/hibernate.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jai/1.1.2_01/jai_codec.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jai/1.1.2_01/jai_core.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jdom/1.0/jaxen-core.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jdom/1.0/jaxen-jdom.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jdom/1.0/jdom.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jdom/1.0/saxpath.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jdom/1.0/xerces.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jdom/1.0/xml-apis.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jfreechart/1.0.1/jcommon.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jfreechart/1.0.1/jfreechart.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jimi/1.0/jimi.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jrun/4.0-update6/jrun.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jta/1.0/jta.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jug-asl/2.0.0/jug-asl.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/junit/4.1/junit.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jwsdp/2.0/jaxws-api.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jwsdp/2.0/jaxws-rt.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jwsdp/2.0/jaxws-tools.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jwsdp/2.0/jsr181-api.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jwsdp/2.0/jsr250-api.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jwsdp/2.0/saaj-api.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jwsdp/2.0/saaj-impl.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/log4j/1.2.13/log4j.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/mail/1.5/mail.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/msbase/1.0/msbase.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/mssqlserver/1.0/mssqlserver.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/msutil/1.0/msutil.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/oreilly/1.0/oreilly.jar:/home/david/javastuff/eclipse-3.3m4/workspace/search/build:/home/david/javastuff/eclipse-3.3m4/workspace/search/conf/log4j4tests:/home/david/javastuff/eclipse-3.3m4/workspace/search/conf/hibernate:/home/david/javastuff/eclipse-3.3m4/workspace/search/conf/sql:/home/david/javastuff/apache-ant-1.7.0/lib/ant-launcher.jar:/home/david/javastuff/ant/lib/ant.jar:/home/david/javastuff/ant/lib/ant-junit.jar' > So you have both /home/david/javastuff/ant *and* > /home/david/javastuff/apache-ant-1.7.0/lib in your environment. > > Peter > >> -- >> View this message in context: >> http://www.nabble.com/1.6.5--%3E-1.7.0-Unit-test-failures-tf2858724.html#a7986899 >> Sent from the Ant - Users mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/1.6.5--%3E-1.7.0-Unit-test-failures-tf2858724.html#a7987714 Sent from the Ant - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
