Merge pull request #68 from ammendonca/KEYCLOAK-RersourceLoadingPath

KEYCLOAK When using -Dresources the default path expects to find "keyclo...
This commit is contained in:
stianst 2013-10-15 02:51:36 -07:00
commit 91297f1ffd

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