From 0ed3975b54c17878e4d33486d2c630a513397232 Mon Sep 17 00:00:00 2001 From: ammendonca Date: Mon, 14 Oct 2013 17:47:46 +0100 Subject: [PATCH] KEYCLOAK When using -Dresources the default path expects to find "keycloak" in path as root folder. Removed such constraint so it works with different names for root folder. --- .../src/main/java/org/keycloak/testutils/KeycloakServer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.*", "")); } }