Jason Rogers wrote:

> I am pretty sure this has been covered but I can't find it on the archives.
>
> I am trying to build a pretty large project, and am running out of memory.
> Therefore, I would like to up the max memory of java.  How can I set the
> -Xmx switch when invoking Ant?

Set the environment var ANT_OPTS, like

ANT_OPTS="-Xmx128M"
export ANT_OPTS

in your .profile/custom build.sh/whatever...

Glenn McAllister
SOMA Networks, Inc.


Reply via email to