HHH-12171 - Fix tests for hibernate-orm-modules

Add support for Windows as well when executing JBoss CLI
This commit is contained in:
Vlad Mihalcea 2018-01-08 17:13:00 +02:00
parent 675890134f
commit 6f83e4b948
1 changed files with 4 additions and 1 deletions

View File

@ -190,10 +190,13 @@ task installWildFly(type: Copy, dependsOn: createModulesZip) {
// until we have a version of WF supporting EE 8 (JPA 2.2), we need to patch // until we have a version of WF supporting EE 8 (JPA 2.2), we need to patch
// the install to support JPA 2.2 // the install to support JPA 2.2
def executableExtension = (System.properties['os.name'].toLowerCase().contains('windows')) ? 'bat' : 'sh'
exec { exec {
ignoreExitValue = true ignoreExitValue = true
executable "$wildFlyInstallDir/bin/jboss-cli.sh" executable "$wildFlyInstallDir/bin/jboss-cli." + executableExtension
args "patch apply $patchFile.absolutePath" args "patch apply $patchFile.absolutePath"
} }