[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:
parent
1b3a76d0af
commit
39cff0750c
1 changed files with 9 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue