Merge pull request #1225 from nageshs/master

Close the local.properties file after reading
Issue #KT-19397 Fixed
This commit is contained in:
Sergey Igushkin
2017-08-07 16:07:51 +03:00
committed by GitHub
@@ -29,7 +29,9 @@ fun mapKotlinTaskProperties(project: Project, task: AbstractKotlinCompile<*>) {
val localPropertiesFile = project.rootProject.file("local.properties")
if (localPropertiesFile.isFile) {
val properties = Properties()
properties.load(localPropertiesFile.inputStream())
localPropertiesFile.inputStream().use {
properties.load(it)
}
propertyMappings.forEach { it.apply(properties, task) }
}
}