mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Maxim Thomas
15.32.2019 f118410bbfd7b246a6f69c3be11804fc82e09a42
Fixed Error while deploying Example Plugin (#79)


1 files modified
5 ■■■■ changed files
opendj-config/src/main/java/org/forgerock/opendj/config/ManagedObjectDefinitionResource.java 5 ●●●● patch | view | raw | blame | history
opendj-config/src/main/java/org/forgerock/opendj/config/ManagedObjectDefinitionResource.java
@@ -99,11 +99,14 @@
            String baseName = prefix + "." + d.getClass().getName();
            String path = baseName.replace('.', '/') + ".properties";
            InputStream stream = ConfigurationFramework.class.getClassLoader().getResourceAsStream(path);
            if(stream == null) { //try target class class loader
                stream = d.getClass().getClassLoader().getResourceAsStream(path);
            }
            if (stream == null) {
                throw new MissingResourceException("Can't find resource " + path, baseName, "");
            }
            p = new Properties();
            try (InputStream is = new BufferedInputStream(stream)) {
                p.load(is);