ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Meals <>
Subject Re: forked VM issue
Date Fri, 21 Oct 2005 03:19:50 GMT
Jim --

If you have root access to the Solaris machine, you can change the JVM 
preference order with the jvm.cfg file.  The only downside is then 
you're globally changing the JVM preferences for everyone on that 
system.  The jvm.cfg file should be somewhere under 
${JAVA_HOME}/jre/lib/sparc or maybe sparcv9 on a Solaris machine.  It's 
well-documented, and just gives Java a preference in which order to try 
running VMs.

BTW, have you tried <jvmarg value="-client"/> as a child of <batchtest ...>?

Best o' luck,

James Taylor wrote:

>I've recently installed java 5 on a machine I remote log into and develop
>on. Bit in order to run the VM (virtual machine) I need to give -client flag
>to java ie java –client
>The machine is a solaris machine and the default option is –server and I
>don't know how to make client VM the default.
>So in order to run ant I've set a environment variable ANT_OPS to include
>–client switch and ant now runs – hurray!!
>In the build file I have a junit task and I want to put in a batchtest task
>with a fork = "yes" option… but the VM breaks as the task starts a seperate
>VM that seemingly disregards the ANT_OPS -client environment variable.
>The work around is to set the junit option <jvmarg value = "-client" />
>which gives the forked junit VM the client switch, but I would like to fork
>the batchtest not the junit task.
>Question is how to?
>…I want to run each test in a separate VM, maybe forking the junit task
>might do this anyways?
>…I'm a little confused. If I make a test suite and add the test cases to it
>will they run separately so maybe I'm getting too complicated?

 * 	Tim Meals
 * 	Web Applications Developer
 * 	@email <>

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message