• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Leon Pu
Greenhorn
Posts: 22
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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

Thanks,
Sumeet
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic