Skip to content

Commit

Permalink
Use simpler API
Browse files Browse the repository at this point in the history
  • Loading branch information
TWiStErRob committed Jul 13, 2023
1 parent a30b3d7 commit db698ff
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -222,12 +222,13 @@ tasks {
).forEach {
val e2eName = "${it}E2E"
val e2eEnvName = "${ENV_PROJECT_PROPERTIES_PREFIX}${e2eName}"
//properties defined using ORG_GRADLE_PROJECT_ are accessible in child process anyway
// Properties defined using ORG_GRADLE_PROJECT_ are accessible in child process anyway.
if (project.hasProperty(e2eName) && System.getenv(e2eEnvName) == null) {
val e2eValue = project.property(e2eName)!!
if (e2eName.contains(".")) {
systemProperties.put("${SYSTEM_PROJECT_PROPERTIES_PREFIX}${e2eName}", project.property(e2eName))
systemProperty("${SYSTEM_PROJECT_PROPERTIES_PREFIX}${e2eName}", e2eValue)
} else {
environment("$ENV_PROJECT_PROPERTIES_PREFIX${e2eName}", project.property(e2eName)!!)
environment("$ENV_PROJECT_PROPERTIES_PREFIX${e2eName}", e2eValue)
}
}
}
Expand Down

0 comments on commit db698ff

Please sign in to comment.