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*
43
43
gradle
44
44
gradlew
45
45
gradlew.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
78
78
org.gradle.jvmargs=-Xms1024m -Xmx4048m
79
79
''' ;
80
80
final propertiesFile = File ("$rootPath /gradle.properties" );
81
- final source = propertiesFile.readAsStringSync ();
81
+ final source = propertiesFile.existsSync ()
82
+ ? propertiesFile.readAsStringSync ()
83
+ : null ;
82
84
propertiesFile.writeAsStringSync (contents);
83
85
int result;
84
86
// Using the Gradle daemon causes a strange problem.
@@ -99,7 +101,7 @@ org.gradle.jvmargs=-Xms1024m -Xmx4048m
99
101
}
100
102
}
101
103
} finally {
102
- propertiesFile.writeAsStringSync (source);
104
+ if (source != null ) propertiesFile.writeAsStringSync (source);
103
105
}
104
106
return result;
105
107
}
You can’t perform that action at this time.
0 commit comments