[Fix keycloak#12385] Update option to run kc.bat on windows instead of kc.sh (#12386)

Co-authored-by: nchopra <nchopra@redhat.com>

Resolves #12385
This commit is contained in:
nehachopra27 2022-06-15 15:29:11 +01:00 committed by GitHub
parent 1b3a76d0af
commit 39cff0750c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,6 +27,7 @@ import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicBoolean;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang3.SystemUtils;
import org.jboss.arquillian.container.spi.client.container.DeployableContainer;
import org.jboss.arquillian.container.spi.client.container.DeploymentException;
import org.jboss.arquillian.container.spi.client.container.LifecycleException;
@ -149,8 +150,7 @@ public class KeycloakQuarkusServerDeployableContainer implements DeployableConta
private String[] getProcessCommands() {
List<String> commands = new ArrayList<>();
commands.add("./kc.sh");
commands.add(getCommand());
commands.add("-v");
commands.add("start");
commands.add("--http-enabled=true");
@ -297,6 +297,13 @@ public class KeycloakQuarkusServerDeployableContainer implements DeployableConta
start();
}
private static String getCommand() {
if (SystemUtils.IS_OS_WINDOWS) {
return "kc.bat";
}
return "./kc.sh";
}
public List<String> getAdditionalBuildArgs() {
return additionalBuildArgs;
}