You can use macrodefs to make it more readable to others.
First define a macrodef something like as follows
Now you can invoke the macrodef as follows
From: Mark Giffin
To: Ant Users List
Cc: Vimil Saju
Sent:
I assume you mean running the java task with the fork attribute set to
true, not the xslt task. Nothing is wrong with using the java task, but
I thought it might be a little easier for someone else to understand if
I used the xslt task instead. But this seems like more trouble than it
is worth.
max heap memory size is a jvm level setting that the xslt task has no control
over. The only way to specify a different heap memory size for the xslt task is
to run it in a different jvm, Running the xslt task by setting the fork
attribute to true as you showed in the second approach is the way
How can I increase the memory for the xslt task from within Ant 1.8.4,
not with an environment variable? I am using Saxon by specifying the
Saxon jar classpath in this target:
This transform job crashes with "java.lang.OutOfMemoryError: Java heap
space" unless I set ANT