This is the correct solution, because I define JAVACMD with
more than the default parameters set, and I build a project
with 2137 java source files with no problem.

Note that the parameters David gave are for JDK 1.1
JDK 1.2 uses -Xms128m -Xmx128m

David Bullock wrote:

Hi. See below.

Peter Donald wrote:

At 06:43  15/9/00 -0500, you wrote:
>Hi,
>
>We have a fairly large Java source tree (500+ *.java files in a dozen
>packages/subpackages) which we would like to use Ant to build.
>
You could also not fork, and just give more memory to the JVM running Ant.  Use the -ms and -mx flags to the 'java' command in the ant script file, or set the $JAVACMD environment variable that that script uses, in your .antrc, to

  setenv JAVACMD "/my/path/to/java -ms128 -mx128"

-- 
David Bullock
Project Leader 
[EMAIL PROTECTED]

"It's no use saying 'We are doing our best.'  You 
have got to succeed in doing what's necessary."  
    ...Winston Churchill


LISAsoft
http://www.lisa.com.au/

Adelaide                  Sydney
--------------------      ------------------------
38 Greenhill Rd           Level 3, 228 Pitt Street
Wayville S.A. 5034        Sydney NSW 2000
Australia                 Australia

PH  +61 8 8272 1555       PH  +61 2 9283 0877
FAX +61 8 8271 1199       FAX +61 2 9283 0866
--------------------      ------------------------
 

Reply via email to