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

Gaetan Boismal
30.27.2015 5b5d50e090226b3196e42c12881788a3d2d610c0
svn property check maven plugin improvement

Improve error/warning message logging
1 files modified
14 ■■■■ changed files
opendj-svn-property-check-maven-plugin/src/main/java/org/forgerock/maven/CheckSVNPropertyMojo.java 14 ●●●● patch | view | raw | blame | history
opendj-svn-property-check-maven-plugin/src/main/java/org/forgerock/maven/CheckSVNPropertyMojo.java
@@ -94,9 +94,9 @@
        }
        if (!errorFilePaths.isEmpty()) {
            getLog().warn(" Potential " + svnPropertyName + " updates needed " + "for the following files:");
            for (String filename : errorFilePaths) {
                getLog().warn("     " + filename);
            logWithAppropriateLevel(" Potential " + svnPropertyName + " updates needed " + "for the following files:");
            for (String fileName : errorFilePaths) {
                logWithAppropriateLevel("     " + fileName);
            }
            if (!ignoreErrors) {
@@ -106,6 +106,14 @@
        }
    }
    private void logWithAppropriateLevel(final String message) {
        if (!ignoreErrors) {
            getLog().error(message);
        } else {
            getLog().warn(message);
        }
    }
    /**
     * Examines the provided status item to determine whether the associated
     * file is acceptable.