Increasing the Memory for the Ant Process

For details about setting custom JVM arguments to the Ant build process see this section.