Skip to content

Commit

Permalink
WIP 343 Try to build with Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ascheman committed Dec 16, 2024
1 parent f3283ab commit 490ede5
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions integration-test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,11 @@ tasks.register("cleanIntegrationTestMavenPlugin") {
doLast {
def result = exec {
workingDir INTEGRATION_TEST_DIRECTORY_MAVEN
commandLine System.getProperty("os.name") ==~ /Windows.*/ ? "cmd /c mvnw.cmd" : "./mvnw",
"clean", "-Dhsc.version=${project.version}", "-ssettings.xml"
if (System.getProperty("os.name") ==~ /Windows.*/) {
commandLine "cmd", "/c", "mvnw.cmd", "clean", "-Dhsc.version=${project.version}", "-ssettings.xml"
} else {
commandLine "./mvnw", "clean", "-Dhsc.version=${project.version}", "-ssettings.xml"
}
}

}
Expand All @@ -163,8 +166,11 @@ tasks.register("integrationTestMavenPlugin") {
doLast {
def result = exec {
workingDir INTEGRATION_TEST_DIRECTORY_MAVEN
commandLine System.getProperty("os.name") ==~ /Windows.*/ ? "cmd /c mvnw.cmd" : "./mvnw",
"verify", "-Dhsc.version=${project.version}", "-ssettings.xml"
if (System.getProperty("os.name") ==~ /Windows.*/) {
commandLine "cmd", "/c", "mvnw.cmd", "verify", "-Dhsc.version=${project.version}", "-ssettings.xml"
} else {
commandLine "./mvnw", "verify", "-Dhsc.version=${project.version}", "-ssettings.xml"
}
}
logger.debug "Script output: $result"
assert testIndex.exists()
Expand Down

0 comments on commit 490ede5

Please sign in to comment.