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

Valera V.Harseko
13.12.2022 5bf62657fc6d1f1234f709d7b97029d7ab2fb935
FIX TransformerFactory does not recognise attribute
1 files modified
8 ■■■■ changed files
opendj-maven-plugin/src/main/java/org/forgerock/opendj/maven/GenerateConfigMojo.java 8 ●●●● patch | view | raw | blame | history
opendj-maven-plugin/src/main/java/org/forgerock/opendj/maven/GenerateConfigMojo.java
@@ -395,9 +395,15 @@
    private void initializeStylesheets() throws TransformerConfigurationException {
        getLog().info("Loading XSLT stylesheets...");
        stylesheetFactory = TransformerFactory.newInstance();
        //stylesheetFactory.setAttribute("jdk.xml.xpathTotalOpLimit", "0");
        try {
            stylesheetFactory.setAttribute("jdk.xml.xpathTotalOpLimit", "0");
        }catch (Throwable e) {}
        try {
        stylesheetFactory.setAttribute("jdk.xml.xpathExprGrpLimit", "0");
        }catch (Throwable e) {}
        try {
        stylesheetFactory.setAttribute("jdk.xml.xpathExprOpLimit", "0");
        }catch (Throwable e) {}
        stylesheetFactory.setURIResolver(resolver);
        stylesheetMetaJava = loadStylesheet("metaMO.xsl");
        stylesheetMetaPackageInfo = loadStylesheet("package-info.xsl");