File tree Expand file tree Collapse file tree 4 files changed +7
-30
lines changed Expand file tree Collapse file tree 4 files changed +7
-30
lines changed Original file line number Diff line number Diff line change @@ -43,3 +43,6 @@ lib/kotlin*
4343gradle
4444gradlew
4545gradlew.bat
46+ # User specific configuration based on current Intellij SDKs.
47+ gradle.properties
48+ .idea /misc.xml
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -78,7 +78,9 @@ org.gradle.parallel=true
7878org.gradle.jvmargs=-Xms1024m -Xmx4048m
7979''' ;
8080 final propertiesFile = File ("$rootPath /gradle.properties" );
81- final source = propertiesFile.readAsStringSync ();
81+ final source = propertiesFile.existsSync ()
82+ ? propertiesFile.readAsStringSync ()
83+ : null ;
8284 propertiesFile.writeAsStringSync (contents);
8385 int result;
8486 // Using the Gradle daemon causes a strange problem.
@@ -99,7 +101,7 @@ org.gradle.jvmargs=-Xms1024m -Xmx4048m
99101 }
100102 }
101103 } finally {
102- propertiesFile.writeAsStringSync (source);
104+ if (source != null ) propertiesFile.writeAsStringSync (source);
103105 }
104106 return result;
105107 }
You can’t perform that action at this time.
0 commit comments