You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/10/18 23:30:11 UTC

[sling-htl-maven-plugin] 12/39: SLING-6084 htl-maven-plugin should provide skip parameter

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-htl-maven-plugin.git

commit 984d254eba35cdb7e253a2d8047479dcfcdc1fc1
Author: Stefan Seifert <ss...@apache.org>
AuthorDate: Fri Sep 30 14:49:54 2016 +0000

    SLING-6084 htl-maven-plugin should provide skip parameter
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1762922 13f79535-47bb-0310-9956-ffa450edef68
---
 src/main/java/org/apache/sling/maven/htl/ValidateMojo.java | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/main/java/org/apache/sling/maven/htl/ValidateMojo.java b/src/main/java/org/apache/sling/maven/htl/ValidateMojo.java
index cdea4ad..2a105a4 100644
--- a/src/main/java/org/apache/sling/maven/htl/ValidateMojo.java
+++ b/src/main/java/org/apache/sling/maven/htl/ValidateMojo.java
@@ -88,6 +88,12 @@ public class ValidateMojo extends AbstractMojo {
     @Parameter(property = "failOnWarnings", defaultValue = "false")
     private boolean failOnWarnings;
 
+    /**
+     * If set to "true" the validation will be skipped.
+     */
+    @Parameter
+    private boolean skip;
+
     private boolean hasWarnings = false;
     private boolean hasErrors = false;
     private String processedIncludes = null;
@@ -97,6 +103,10 @@ public class ValidateMojo extends AbstractMojo {
     private int sourceDirectoryLength = 0;
 
     public void execute() throws MojoExecutionException, MojoFailureException {
+        if (skip) {
+            getLog().info("Skipping validation.");
+            return;
+        }
 
         long start = System.currentTimeMillis();
 

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.