Windows操作系统,在运行ant的bat脚本文件: set ANT_OPTS=-Xms128m -Xmx256m Unix/Linux操作系统,在运行ant的shell(sh)脚本文件: export ANT_OPTS=-Xms128m -Xmx256m