Skip to content

Commit

Permalink
[integration-tests]: run Gradle builds of projects with --no-daemon o…
Browse files Browse the repository at this point in the history
…ption. (#409)
  • Loading branch information
mvicsokolova authored Mar 7, 2024
1 parent 76d3f5c commit 16b9b93
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ internal fun GradleBuild.buildGradleByShell(

private fun buildSystemCommand(projectDir: File, commands: List<String>, properties: List<String>): List<String> {
return if (isWindows)
listOf("cmd", "/C", "gradlew.bat", "-p", projectDir.canonicalPath) + commands + properties
listOf("cmd", "/C", "gradlew.bat", "-p", projectDir.canonicalPath) + commands + properties + "--no-daemon"
else
listOf("/bin/bash", "gradlew", "-p", projectDir.canonicalPath) + commands + properties
listOf("/bin/bash", "gradlew", "-p", projectDir.canonicalPath) + commands + properties + "--no-daemon"
}

private val isWindows: Boolean = System.getProperty("os.name")!!.contains("Windows")

0 comments on commit 16b9b93

Please sign in to comment.