ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 41104] New: - FileNotFoundException on forked batched junit tasks
Date Mon, 04 Dec 2006 15:36:02 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41104>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41104

           Summary: FileNotFoundException on forked batched junit tasks
           Product: Ant
           Version: 1.7.0RC1
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Optional Tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: osganian@yahoo.com


Using the following task:

        <junit printsummary="on"
               filtertrace="on"
               fork="yes"
               failureProperty="unit.failed"
               haltonfailure="no"
               showoutput="true"
               tempdir="${tmpDir}">
            <classpath refid="unit.classpath"/>
            <syspropertyset refid="unit.propertyset"/>
            <batchtest todir="${testReportDir}">
                <fileset dir="${testSrcDir}">
                    <include name="**/*Test.java"/>
                </fileset>
            </batchtest>
        </junit>

on ANT 1.7RC1 I get the following error:

    [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 3.015 sec
    [junit] java.io.FileNotFoundException:
C:\trunk\build\tmp\junitvmwatcher323850216.properties (The system cannot find
the file specified)

    [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:1025)
    [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:1627)
    [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.GeneratedMethodAccessor18.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:342)
    [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:1292)
    [junit]     at org.apache.tools.ant.Project.executeTarget(Project.java:1261)

    [junit]     at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [junit]     at org.apache.tools.ant.Project.executeTargets(Project.java:1144)
    [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:298)
    [junit]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    [junit] Running MyTest

I see the file junitvmwatcher323850216.properties get created and then removed
in my tmpDir but I supposed there is a synchronization issue going on.

The tasks runs fine in ANT 1.6.5 or if I set fork="no" but if I do that only so
many of my tasks run then it eventually fails.

I'm using junit 4.1 (which i dropped in the ANT's lib dir).

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message