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")
|
||||
if (localPropertiesFile.isFile) {
|
||||
val properties = Properties()
|
||||
properties.load(localPropertiesFile.inputStream())
|
||||
localPropertiesFile.inputStream().use {
|
||||
properties.load(it)
|
||||
}
|
||||
propertyMappings.forEach { it.apply(properties, task) }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user