Avoid using project.getProperties() for customSessionLoggerRootPath
This commit is contained in:
committed by
Space Team
parent
3c66ae0f8b
commit
750ff32241
+6
-4
@@ -264,10 +264,12 @@ internal abstract class AbstractKotlinBuildStatsService(
|
|||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
|
||||||
private val customSessionLoggerRootPath =
|
private val customSessionLoggerRootPath: String? = if (gradle.rootProject.hasProperty(CUSTOM_LOGGER_ROOT_PATH)) {
|
||||||
gradle.rootProject.properties[CUSTOM_LOGGER_ROOT_PATH]?.also {
|
logger.warn("$CUSTOM_LOGGER_ROOT_PATH property for test purpose only")
|
||||||
logger.warn("$CUSTOM_LOGGER_ROOT_PATH property for test purpose only")
|
gradle.rootProject.property(CUSTOM_LOGGER_ROOT_PATH) as String
|
||||||
} as String?
|
} else {
|
||||||
|
null
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
private val sessionLoggerRootPath =
|
private val sessionLoggerRootPath =
|
||||||
|
|||||||
Reference in New Issue
Block a user