I have no special talent. I'm only passionately curious - Albert Einstein
July 14, 2009
Ant: Setting Your JVM Memory Options (-Xms -Xmx, etc.)
Posted by Dave Malone
in Configuration,
Java,
Technology
Ant provides an option to allow you to set your default JVM memory options globally. On Windows, you must create a bat file titled antrc_pre.bat under your %USERPROFILE% directory. Ant will read in this file to set the ANT_OPTS values before executing your build file. Here is the contents of my antrc_pre.bat:
set ANT_OPTS=-Xms512m -Xmx1024m
Comments are currently disabled