4 Replies Latest reply on Jun 10, 2008 11:28 PM by starksm64

    ant 1.7.0 junit issue

    starksm64

      I have been seeing this for a while on osx when I updated to ant 1.7.0 but thought it might be osx specific. I'm seeing it on fedora 9 as well, so its some ant/junit issue. The test runs fine but the junit monitor behavior seems to lose track of the test.

      [starksm@banshee testsuite]$ ant -Dtest=org.jboss.test.web.test.WebIntegrationUnitTestCase one-test
      Buildfile: build.xml
      
      one-test:
       [junit] Tests run: 37, Failures: 1, Errors: 0, Time elapsed: 23.579 sec
       [junit] java.io.FileNotFoundException: /home/svn/JBossHead/trunk/testsuite/junitvmwatcher694724713.properties (No such file or directory)
       [junit] at java.io.FileInputStream.open(Native Method)
       [junit] at java.io.FileInputStream.<init>(FileInputStream.java:106)
       [junit] at java.io.FileReader.<init>(FileReader.java:55)
       [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeAsForked(JUnitTask.java:1028)
       [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:817)
       [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeOrQueue(JUnitTask.java:1657)
       [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:764)
       [junit] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
       [junit] at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
       [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       [junit] at java.lang.reflect.Method.invoke(Method.java:585)
       [junit] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
       [junit] at org.apache.tools.ant.Task.perform(Task.java:348)
       [junit] at org.apache.tools.ant.Target.execute(Target.java:357)
       [junit] at org.apache.tools.ant.Target.performTasks(Target.java:385)
       [junit] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
       [junit] at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
       [junit] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
       [junit] at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
       [junit] at org.apache.tools.ant.Main.runBuild(Main.java:698)
       [junit] at org.apache.tools.ant.Main.startAnt(Main.java:199)
       [junit] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
       [junit] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
       [junit] Running org.jboss.test.web.test.WebIntegrationUnitTestCase
       [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
       [junit] Test org.jboss.test.web.test.WebIntegrationUnitTestCase FAILED (crashed)
      
      BUILD SUCCESSFUL
      Total time: 28 seconds