Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
AW: Ant within Eclipse Junit OutOfMemoryException

AW: Ant within Eclipse Junit OutOfMemoryException

2007-06-29       - By Knuplesch, J?rgen
Reply:     1     2  

Hi,

I use an Ant Script tu run a lot of Junit Tests. I had to change the maxmemory
to 1024m to let all the Tests run.
But sadly I used Ant directly and not Eclipse.

But this is how I solved my memory problem in the Ant-Task:


<junit errorproperty="dope.test.failed"
          failureproperty="dope.test.failed"
          maxmemory="1024m"
          fork="yes">
     <classpath>
       <path refid="junit.classpath"/>
     </classpath>
     <formatter type="brief" usefile="false"/>
     <formatter type="xml" usefile="true"/>
       <batchtest todir="${dope.report.dir}">
           <fileset dir="${cvs.exportbox}/source" >
               <include name="de/icongmbh/**/*Test.java"/>
               <include name="functional/**/*Test.java"/>
               <include name="regression/**/*Test.java"/>
           </fileset>
       </batchtest>
   </junit>




--
J?rgen Knuplesch                    www.icongmbh.de
icon Systemhaus GmbH                Tel. +49 711 806098-275
Sophienstra?e 40
D-70178 Stuttgart                   Fax. +49 711 806098-299

Gesch?ftsf?hrer: Uwe Seltmann
HRB Stuttgart 17655
USt-IdNr.: DE 811944121
-----Urspr?ngliche Nachricht-----
Von: pam [mailto:pam.withnall@(protected)]
Gesendet: Freitag, 29. Juni 2007 01:36
An: 'Ant Users List'
Betreff: Ant within Eclipse Junit OutOfMemoryException


Hi,
I'm not sure if this is the correct forum for this question, but I'm running
Junit tests with ant, within Eclipse. I have a lot of tests, I wish to run them
overnight , then look at a JUnitReport.
Repeatedly I have abandoned this method because I get an OutOfMemoryException
after about 35 minutes.
----------------
BUILD FAILED
java.lang.OutOfMemoryError: Java heap space

Total time: 36 minutes 11 seconds
---------------

I have trawled the web, added -Xmx640m as a vm argument to the JVM and variable
ANT_OPS= -Xmx640m in the ant set up.

But still I get the error.

Does anyone have experience with this?
I am using Eclipse 3.1 and ant 1.6.5

Thanks,Pam.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected) For additional commands
, e-mail: user-help@(protected)


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.