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

Gaetan Boismal
12.02.2015 e1aa79f33df93122429fef8a6817fd5fef515945
OPENDJ-1769: Add skip option to svn property check

Code cleanup in plugin pom.
2 files modified
10 ■■■■■ changed files
opendj-svn-property-check-maven-plugin/pom.xml 2 ●●● patch | view | raw | blame | history
opendj-svn-property-check-maven-plugin/src/main/java/org/forgerock/maven/CheckSVNPropertyMojo.java 8 ●●●●● patch | view | raw | blame | history
opendj-svn-property-check-maven-plugin/pom.xml
@@ -35,7 +35,7 @@
  <artifactId>opendj-svn-property-check-maven-plugin</artifactId>
  <version>1.0.0-SNAPSHOT</version>
  <name>Check SVN property maven plugin</name>
  <name>OpenDJ Check SVN property maven plugin</name>
  <description>
    Checks ForgeRock source file copyrights.
  </description>
opendj-svn-property-check-maven-plugin/src/main/java/org/forgerock/maven/CheckSVNPropertyMojo.java
@@ -63,6 +63,9 @@
    @Parameter(required = true)
    private String svnPropertyExpectedValue;
    @Parameter(property = "skipSvnPropCheck", required = true, defaultValue = "false")
    private boolean checkDisabled;
    /**
     * The name of the system property that may be used to prevent eol-style
     * problems from failing the build.
@@ -77,6 +80,11 @@
    /** {@inheritDoc} **/
    public void execute() throws MojoExecutionException, MojoFailureException {
        if (checkDisabled) {
            getLog().info("Check svn property " + svnPropertyName + " is disabled");
            return;
        }
        try {
            svnClientManager.getStatusClient().doStatus(new File(svnWorkspaceRoot), SVNRevision.WORKING,
                    SVNDepth.INFINITY, false, false, false, false, this, null);