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 Jan 6, 2025
1 parent 0a4b488 commit 79a4047
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 79a4047

Please sign in to comment.