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:
parent
91c5fe5e4e
commit
0ed3975b54
1 changed files with 1 additions and 1 deletions
|
@ -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.*", ""));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue