ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Close" <acl...@gmail.com>
Subject JUnit task and the 'fork' attribute...
Date Mon, 29 Jan 2007 23:22:12 GMT
hello all,

i'm attempting to get the fork attribute to work with the optional
JUnit task.  when attempting a build on this machine we are getting
JVM OutOfMemoryErrors during the JUnit task.  so i figured i would use
the fork command and then be able to up the JVM heap size for that
particular task.  however i'm now getting 'Process fork failed'
messages, but no details as to why.  here is the target i'm using to
invoke JUnit:

	<target name="test" depends="package_tests" >
		<junit fork="${junit.fork}"
				forkmode="${junit.forkmode}"
				maxmemory="${junit.maxmemory}"
				printsummary="${junit.printsummary}">
			<classpath refid="lib.path" />
			<formatter type="${junit.format.type}" />
			<batchtest todir="${test.rpts.dir}">
				<fileset dir="${test.src.dir}">
					<exclude name="**/AllTests.*" />
					<include name="**/*Test*.java" />
				</fileset>
			</batchtest>
		</junit>
	</target>

i've defined the following variables in my properties file:

junit.compile.failonerror=true
junit.fork=true
junit.forkmode=perBatch  (i've tried the default and other options as well...)
junit.format.type=xml
junit.maxmemory=512m
junit.printsummary=withOutAndErr
junit.report.format=frames

in the stacktrace that gets printed during the JUnit task i see
java.io.FileNotFoundException: junitvmwatcher1116665720.properties
(The system cannot find the file specified)
is this a prop file that should be created by the JUnit task?  or do i
still have something configured incorrectly?

thanks for any insight.
andy

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


Mime
View raw message