Merge pull request #1225 from nageshs/master
Close the local.properties file after reading Issue #KT-19397 Fixed
This commit is contained in:
+3
-1
@@ -29,7 +29,9 @@ fun mapKotlinTaskProperties(project: Project, task: AbstractKotlinCompile<*>) {
|
|||||||
val localPropertiesFile = project.rootProject.file("local.properties")
|
val localPropertiesFile = project.rootProject.file("local.properties")
|
||||||
if (localPropertiesFile.isFile) {
|
if (localPropertiesFile.isFile) {
|
||||||
val properties = Properties()
|
val properties = Properties()
|
||||||
properties.load(localPropertiesFile.inputStream())
|
localPropertiesFile.inputStream().use {
|
||||||
|
properties.load(it)
|
||||||
|
}
|
||||||
propertyMappings.forEach { it.apply(properties, task) }
|
propertyMappings.forEach { it.apply(properties, task) }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user