Skip to content

Commit

Permalink
Show JDK and check for Windows by RegEx
Browse files Browse the repository at this point in the history
  • Loading branch information
ascheman committed Feb 5, 2024
1 parent d980a34 commit 1f6b545
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ allprojects {
println "projectDir : " + projectDir
println "groupId : " + project.group
println "targetCompatibility : " + java.targetCompatibility
println "OS : " + System.properties["os.name"]
println "Java VM Name : " + System.properties["java.vm.name"]
println "Java VM Vendor : " + System.properties["java.vm.vendor"]
println "Java VM Version : " + System.properties["java.vm.version"]
println "=" * 80
}
}
Expand Down Expand Up @@ -100,7 +104,7 @@ tasks.register("integrationTestOnly") {
doLast {
def result = exec {
workingDir INTEGRATION_TEST_DIRECTORY
commandLine System.getProperty("os.name") == "Windows" ? "gradlew.bat" : "./gradlew", "clean", "htmlSanityCheck", "-PhtmlSanityCheckVersion=${project.version}"
commandLine System.getProperty("os.name") ==~ "Windows" ? "gradlew.bat" : "./gradlew", "clean", "htmlSanityCheck", "-PhtmlSanityCheckVersion=${project.version}"
}
logger.debug "Script output: $result"
File integrationTestDirectory = file(INTEGRATION_TEST_DIRECTORY)
Expand Down

0 comments on commit 1f6b545

Please sign in to comment.