Friday, July 08, 2011

Java_OPTS in ANT

Have you ever run out of Space while building your code, You would have seen your ant complain about "Out of Heap Space".

Solution : set the environment variable

set ANT_OPTS=-Xms512m -Xmx512m (Windows)

export ANT_OPTS="-Xms512m -Xmx512m" (ksh/bash)

setenv ANT_OPTS "-Xms512m -Xmx512m" (tcsh/csh)


now run your build