Fix build script

This commit is contained in:
topjohnwu 2020-07-04 03:50:39 -07:00
parent 0f7caa66fb
commit 9348c5bad9

View File

@ -27,7 +27,7 @@ task clean(type: Delete) {
delete rootProject.buildDir
}
String.metaClass.toFile = { new File(this) }
String.metaClass.toFile = { new File(delegate) }
def configFile = rootProject.findProperty('configPath')?.toFile() ?: rootProject.file('config.prop')
if (!configFile.exists())
throw new GradleException("Please setup config.prop")