ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol" <vmas...@octo.fr>
Subject JUnit - "Process Fork Failed" problem with Ant Beta2
Date Mon, 19 Feb 2001 14:16:45 GMT
Hi,

I have updated from version (VERSION=1.3beta1,DATE=February 6 2001) of Ant
to the new Beta2 (VERSION=1.3beta2,DATE=February 15 2001) and I now have a
problem with my JUnit task. It now fails with the following message :

-------

    [junit] Running j2eeunit.TestServletTestCase_22

BUILD FAILED

G:\Vma\Projets\Encours\j2eeunit\build\build.xml:512: Process fork failed.
--- Nested Exception ---
java.io.IOException
        at
org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Exec
ute.java:519)
        at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:329)
        at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeAsForke
d(JUnitTask.java:352)
        at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitT
ask.java:286)
        at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitT
ask.java:263)
        at org.apache.tools.ant.Target.execute(Target.java:153)
        at org.apache.tools.ant.Project.runTarget(Project.java:898)
        at org.apache.tools.ant.Project.executeTarget(Project.java:536)
        at org.apache.tools.ant.Project.executeTargets(Project.java:510)
        at org.apache.tools.ant.Main.runBuild(Main.java:421)
        at org.apache.tools.ant.Main.main(Main.java:149)

If I change my ant.jar to the previous version, it works fine .... Is this a
bug or do I have to change anything in my JUnit task usage ? Here is how I
start my test in the build.xml :

        <junit printsummary="yes" haltonfailure="yes" fork="yes">

            <classpath>
                <path>
                    <fileset dir="${lib.dir}">
                        <patternset refid="all.jar.files"/>
                    </fileset>
                </path>
                <pathelement path="${out.classes.dir}"/>
                <pathelement path="${etc.dir}/ant.jar"/>
                <pathelement path="${etc.dir}/optional.jar"/>
            </classpath>

            <formatter type="plain" usefile="false"/>

            <test name="${project}.TestServletTestCase_${servlet.api}"/>

        </junit>

Thanks a lot.
Vincent.


Mime
View raw message