This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes Max memory for executing org.apache.tools.ant.Task extends java class in build file. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Max memory for executing org.apache.tools.ant.Task extends java class in build file." Watch "Max memory for executing org.apache.tools.ant.Task extends java class in build file." New topic
Author

Max memory for executing org.apache.tools.ant.Task extends java class in build file.

Leon Pu
Greenhorn

Joined: Nov 02, 2005
Posts: 22
Hi all,

is it possible to set the max memory for executing org.apache.tools.ant.Task extends java class in ant build file?

Here is my current build script.

[ant-build-script]
<taskdef name="runner" classname="com.foo.runner.MyRunnerTask" classpath="${run.class.path}" />
<runner arg1="foo1" arg2="foo2" />
[ant-build-script]

Thanks.


Best regards,
Leon
Sumit Pat
Greenhorn

Joined: Feb 11, 2009
Posts: 1
Hi,

Try setting ANT_OPTS=Xmx1024m before you run the ant task and check if it works

Thanks,
Sumeet
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Max memory for executing org.apache.tools.ant.Task extends java class in build file.