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:25 UTC
[sling-htl-maven-plugin] 05/11: SLING-6083 htl-maven-plugin should
not fail when source directory not found
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 aa679fb88d45ac5290869cee84c789bd96309643
Author: Stefan Seifert <ss...@apache.org>
AuthorDate: Fri Sep 30 14:35:14 2016 +0000
SLING-6083 htl-maven-plugin should not fail when source directory not found
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/tooling/maven/htl-maven-plugin@1762917 13f79535-47bb-0310-9956-ffa450edef68
---
src/main/java/org/apache/sling/maven/htl/ValidateMojo.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
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 826b2a4..cdea4ad 100644
--- a/src/main/java/org/apache/sling/maven/htl/ValidateMojo.java
+++ b/src/main/java/org/apache/sling/maven/htl/ValidateMojo.java
@@ -104,8 +104,8 @@ public class ValidateMojo extends AbstractMojo {
sourceDirectory = new File(project.getBasedir(), sourceDirectory.getPath());
}
if (!sourceDirectory.exists()) {
- throw new MojoExecutionException(
- String.format("Configured sourceDirectory={%s} does not exist.", sourceDirectory.getAbsolutePath()));
+ getLog().info("Source directory does not exist, skipping.");
+ return;
}
if (!sourceDirectory.isDirectory()) {
throw new MojoExecutionException(
@@ -113,7 +113,7 @@ public class ValidateMojo extends AbstractMojo {
}
if ( !buildContext.hasDelta(sourceDirectory )) {
- getLog().info("No files found to validate, skipping");
+ getLog().info("No files found to validate, skipping.");
return;
}
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.