users@jaxb.java.net

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

From: Brian Pontarelli <brian_at_pontarelli.com>
Date: Mon, 31 Jan 2005 09:46:04 -0600

Tanya,

Not certain how jaxb accomplishes this, but using just plain old ant and
the <java> task, you need to use the <jvmarg> instead of <arg>. These
are passed directly to the virtual machine and that is how you control
the memory sizes. I think it woulld be like this:

<java ...>
  <jvmarg value="-Xmx1000M"/>
  <jvmarg value="-Xms1000M"/>
</java>

Good luck,
Brian Pontarelli


Beech Tanya wrote:

> Hi
>
>
>
> 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?
>
>
>
> Kind Regards
>
> Tanya Beech
> Intelligence Systems
> AT208 QinetiQ
> Malvern Technology Park
> Malvern Worcestershire WR14 3PS
> tel: 01684 895232
>
>
>
> The Information contained in this E-Mail and any subsequent
> correspondence is private and is intended solely for the intended
> recipient(s).
> For those other than the recipient any disclosure, copying,
> distribution, or any action taken or omitted to be taken in reliance
> on such information is prohibited and may be unlawful.
> Emails and other electronic communication with QinetiQ may be
> monitored. Calls to QinetiQ may be recorded for quality control,
> regulatory and monitoring purposes.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net