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/11/07 09:13:27 UTC

[sling-htl-maven-plugin] 07/11: 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 annotated tag htl-maven-plugin-1.0.2
in repository https://gitbox.apache.org/repos/asf/sling-htl-maven-plugin.git

commit 00bc556d0982d97826a77fc53d5847af9ce0c18f
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/tooling/maven/htl-maven-plugin@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>.