环境:蚂蚁插件的IntelliJ任务java.lang.OutOfMemoryError
IntelliJ IDEA的2016年3月1日 构建#IU-163.9166.29,建于2016年12月9日 JRE:1.8.0_112释放-408 -B2 x86_64的 JVM:OpenJDK的64位服务器VM通过JetBrains的SRO
的Mac OS 10.12.2
我在蚂蚁支持插件在IntelliJ中停顿并执行build.xml脚本(请参阅下面的build.xml内容)。执行脚本时出现以下错误。
java.lang.OutOfMemoryError: Java heap space.
我用Google搜索了一个小时左右,并试图adding memory parameters to shell/batch script和increasing IntelliJ compiler heap space无济于事。为了清楚我正在使用IntelliJ中的Ant Build工具窗口来启动Ant任务的执行。我缺少什么设置来调整Java编译器的可用内存?
<project name="Ant Deploy" default="deployProj" basedir="." xmlns:sf="antlib:com.salesforce">
<property file="build.properties"/>
<property environment="env"/>
<!-- Test out deploy and retrieve verbs for package 'mypkg' -->
<target name="deployProj">
<taskdef resource="com/salesforce/antlib.xml" uri="antlib:com.salesforce">
<classpath>
<pathelement location="ant-salesforce.jar" />
</classpath>
</taskdef>
<!-- Upload the contents of the "dst" package -->
<sf:deploy username="${sf.username}" password="${sf.password}" serverurl="${sf.serverurl}" maxPoll="500" pollWaitMillis="150000"
deployRoot="deployRootDir" rollbackOnError="false"/>
</target>
</project>