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.

This commit is contained in:
ammendonca 2013-10-14 17:47:46 +01:00
parent 91c5fe5e4e
commit 0ed3975b54

View file

@ -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.*", ""));
}
}