File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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.