diff --git a/testsuite/integration/src/main/java/org/keycloak/testutils/KeycloakServer.java b/testsuite/integration/src/main/java/org/keycloak/testutils/KeycloakServer.java index 6dd52b7ed8..35d044ebdc 100644 --- a/testsuite/integration/src/main/java/org/keycloak/testutils/KeycloakServer.java +++ b/testsuite/integration/src/main/java/org/keycloak/testutils/KeycloakServer.java @@ -119,7 +119,7 @@ public class KeycloakServer { String resources = System.getProperty("resources"); if (resources == null || resources.equals("")) { for (String c : System.getProperty("java.class.path").split(File.pathSeparator)) { - if (c.contains("keycloak" + File.separator + "testsuite" + File.separator + "integration")) { + if (c.contains(File.separator + "testsuite" + File.separator + "integration")) { config.setResourcesHome(c.replaceFirst("testsuite.integration.*", "")); } }