users@jaxb.java.net

Re: setting Memory Parameter attribute in a build file to be used by Ant

From: Kohsuke Kawaguchi <kohsuke.kawaguchi_at_sun.com>
Date: Mon, 31 Jan 2005 08:07:23 -0800

Beech Tanya wrote:
> I've set my stackSize using the guidelines given in website jaxb/ant.html -
> Java Architecture for XML Binding using XJC with Ant - in my build file. I now
> need to set my memory size in the build file as well. How do I do this as it is
> not mentioned on the website. I've attempted using the <arg value="-Xmx1000mb"
> and <arg value="-Xmx1000m" but neither seem to work. Is there an attribute
> similar to stackSize that I could use?

If you are using the XJC ant task, the task runs inside Ant, so you need
to bump up the memory that Ant can use. To do so, set ANT_OPTS like this:

   $ export ANT_OPTS="-Xmx1000m -Xms256m"
   $ ant

I'll add this to the jaxb/ant.html


-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net