OPENDJ-1769: Add skip option to svn property check
Code cleanup in plugin pom.
| | |
| | | |
| | | <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> |
| | |
| | | @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. |
| | |
| | | |
| | | /** {@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); |