Increasing the memory for the Ant process
You can give custom JVM Arguments to the ANT process. See
here
for more details.