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

vharseko
01.37.2018 389cce8054ff7d70c36ba79cbb19c46e8590834b
debug command on "Writing man page: " from usage
1 files modified
7 ■■■■ changed files
opendj-doc-maven-plugin/src/main/java/org/forgerock/opendj/maven/doc/GenerateRefEntriesMojo.java 7 ●●●● patch | view | raw | blame | history
opendj-doc-maven-plugin/src/main/java/org/forgerock/opendj/maven/doc/GenerateRefEntriesMojo.java
@@ -127,7 +127,8 @@
        commands.add(toolClass);
        commands.add("--help");
        getLog().info("Writing man page: " + manPage.getPath());
        getLog().info("Writing man page: "+manPage.getPath());
        getLog().info(String.join(" ", commands));
        try {
            // Tools tend to use System.exit() so run them as separate processes.
            ProcessBuilder builder = new ProcessBuilder(commands);
@@ -236,6 +237,8 @@
            while ((line = reader.readLine()) != null) {
                writer.write(line);
                writer.write(EOL);
                if (getLog().isDebugEnabled())
                        getLog().debug(line);
            }
        }
    }
@@ -286,6 +289,8 @@
     */
    private void writeToFile(final String input, final File output) throws IOException {
        InputStream is = new ByteArrayInputStream(input.getBytes(Charset.forName("UTF-8")));
        if (getLog().isDebugEnabled())
                getLog().debug(input);
        writeToFile(is, output);
    }
}