Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Restore -XX:MaxHeapSize=256m for gradlew.bat

Restore the MaxHeapSize setting for the Windows build only.
  • Loading branch information...
commit 15b64ba6015fcfbb4ef73975c1ed597de96a7981 1 parent bbe1301
Phil Webb philwebb authored
3  build.gradle
View
@@ -805,12 +805,13 @@ configure(rootProject) {
doLast() {
def gradleOpts = "-XX:MaxPermSize=1024m -Xmx1024m"
+ def gradleBatOpts = "$gradleOpts -XX:MaxHeapSize=256"
File wrapperFile = file('gradlew')
wrapperFile.text = wrapperFile.text.replace("DEFAULT_JVM_OPTS=",
"GRADLE_OPTS=\"$gradleOpts \$GRADLE_OPTS\"\nDEFAULT_JVM_OPTS=")
File wrapperBatFile = file('gradlew.bat')
wrapperBatFile.text = wrapperBatFile.text.replace("set DEFAULT_JVM_OPTS=",
- "set GRADLE_OPTS=$gradleOpts %GRADLE_OPTS%\nset DEFAULT_JVM_OPTS=")
+ "set GRADLE_OPTS=$gradleBatOpts %GRADLE_OPTS%\nset DEFAULT_JVM_OPTS=")
}
}
}
2  gradle/wrapper/gradle-wrapper.properties
View
@@ -1,4 +1,4 @@
-#Thu Nov 01 11:02:41 CET 2012
+#Thu Nov 01 10:28:17 PDT 2012
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
2  gradlew.bat
View
@@ -9,7 +9,7 @@
if "%OS%"=="Windows_NT" setlocal
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
-set GRADLE_OPTS=-XX:MaxPermSize=1024m -Xmx1024m %GRADLE_OPTS%
+set GRADLE_OPTS=-XX:MaxPermSize=1024m -Xmx1024m -XX:MaxHeapSize=256 %GRADLE_OPTS%
set DEFAULT_JVM_OPTS=
set DIRNAME=%~dp0
Please sign in to comment.
Something went wrong with that request. Please try again.