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

Gaetan Boismal
03.50.2016 723b1bd2df194b640e3a5d2e92175803dc9bc494
opendj-maven-plugin/src/main/java/org/forgerock/opendj/maven/GenerateConfigMojo.java
@@ -430,7 +430,16 @@
        }
        final URL url = getClass().getClassLoader().getResource(parentPath);
        loadXMLDescriptorsFromJar(parentPath, ((JarURLConnection) url.openConnection()).getJarFile());
        final String protocol = url.getProtocol();
        if ("file".equals(protocol)) {
            loadXMLDescriptorsFromFolder(parentPath);
        } else if ("jar".equals(protocol)) {
            loadXMLDescriptorsFromJar(parentPath, ((JarURLConnection) url.openConnection()).getJarFile());
        } else {
            final String errorMsg = "Impossible to read XML descriptors from path '" + parentPath + "'";
            getLog().error(errorMsg);
            throw new MojoExecutionException(errorMsg);
        }
    }
    private void loadXMLDescriptorsFromFolder(final String parentPath) {