mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-09 23:12:06 -03:30
[PERF] Determine whether OS is Windows
Closes #33953 Signed-off-by: Martin Bartoš <mabartos@redhat.com>
This commit is contained in:
parent
822eb4471d
commit
491b7861ed
@ -417,7 +417,7 @@ public class NetworkUtils {
|
||||
return checkForPresence("os.name", "sun");
|
||||
}
|
||||
|
||||
private static boolean checkForWindows() {
|
||||
public static boolean checkForWindows() {
|
||||
return checkForPresence("os.name", "win");
|
||||
}
|
||||
|
||||
|
||||
@ -31,8 +31,8 @@ import java.util.stream.Collectors;
|
||||
import io.quarkus.runtime.LaunchMode;
|
||||
import io.smallrye.config.SmallRyeConfig;
|
||||
|
||||
import org.apache.commons.lang3.SystemUtils;
|
||||
import org.keycloak.common.Profile;
|
||||
import org.keycloak.common.util.NetworkUtils;
|
||||
import org.keycloak.quarkus.runtime.cli.command.AbstractCommand;
|
||||
import org.keycloak.quarkus.runtime.configuration.Configuration;
|
||||
import org.keycloak.quarkus.runtime.configuration.PersistedConfigSource;
|
||||
@ -140,7 +140,7 @@ public final class Environment {
|
||||
}
|
||||
|
||||
public static boolean isWindows() {
|
||||
return SystemUtils.IS_OS_WINDOWS;
|
||||
return NetworkUtils.checkForWindows();
|
||||
}
|
||||
|
||||
public static void forceDevProfile() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user