maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Smart (JIRA)" <j...@codehaus.org>
Subject [jira] Created: (MANT-28) Maven Ant Tasks crash in Ant 1.7
Date Sun, 25 Mar 2007 10:29:35 GMT
Maven Ant Tasks crash in Ant 1.7
--------------------------------

                 Key: MANT-28
                 URL: http://jira.codehaus.org/browse/MANT-28
             Project: Maven 2.x Ant Plugin
          Issue Type: Bug
         Environment: Java 1.6.0-b105
Maven Ant Tasks 2.0.4 (maven-artifact-ant-2.0.4-dep.jar)
Ant 1.7.0
Ubuntu Linux
            Reporter: John Smart
         Attachments: planestore-core.zip

The associate script uses the Maven Ant Tasks to declare the project dependencies. When I
run the following unit tests using Ant 1.7, the tests crash as shown below. The same test
works fine in Ant 1.6.5 and when run directly from Maven.

$ ant -f build-mvn.xml clean test
...
test:
    [junit] Running com.javapowertools.planestore.core.dao.AircraftTypeDAOTest
    [junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 4.138 sec
    [junit] Exception in thread "main" java.lang.NoSuchMethodError: org.apache.tools.ant.util.FileUtils.close(Ljava/io/OutputStream;)V
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.PlainJUnitResultFormatter.endTestSuite(PlainJUnitResultFormatter.java:158)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.fireEndTestSuite(JUnitTestRunner.java:620)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:453)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:912)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:766)
    [junit] Running com.javapowertools.planestore.core.dao.AircraftTypeDAOTest
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

BUILD FAILED
/home/john/projects/jpt-sample-code/planestore/planestore-core/build-mvn.xml:87: Test com.javapowertools.planestore.core.dao.AircraftTypeDAOTest
failed (crashed)

Total time: 8 seconds




-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message