Skip to content

Commit

Permalink
#314 Fix Maven wrapper build on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ascheman committed Jan 24, 2025
1 parent 03e32e5 commit c4378e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion htmlSanityCheck-maven-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class CrossPlatformExec extends Exec {
void buildCommand(String... commandArgs) {
if (current().isWindows()) {
executable = 'cmd'
args = ['/c', 'mvnw.bat']
args = ['/c', 'mvnw.cmd']
} else {
executable = './mvnw'
}
Expand Down
2 changes: 1 addition & 1 deletion integration-test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ tasks.register("integrationTestMaven") {
doLast {
def result = exec {
workingDir INTEGRATION_TEST_DIRECTORY_MAVEN
commandLine System.getProperty("os.name") ==~ /Windows.*/ ? "mvnw.bat" : "./mvnw",
commandLine System.getProperty("os.name") ==~ /Windows.*/ ? "cmd /c mvnw.cmd" : "./mvnw",
"clean", "verify", "-Dhsc.version=${project.version}", "-ssettings.xml"
}
logger.debug "Script output: $result"
Expand Down

0 comments on commit c4378e7

Please sign in to comment.