You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ss...@apache.org on 2019/01/07 16:12:39 UTC
[sling-maven-sling-plugin] branch master updated: SLING-8203
Introduce "skip" parameter for sling:fsmount and sling:fsunmount goals
This is an automated email from the ASF dual-hosted git repository.
sseifert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-maven-sling-plugin.git
The following commit(s) were added to refs/heads/master by this push:
new 18dd59d SLING-8203 Introduce "skip" parameter for sling:fsmount and sling:fsunmount goals
18dd59d is described below
commit 18dd59d4d1410350a0fd7bd4e880c142c6613178
Author: sseifert <ss...@pro-vision.de>
AuthorDate: Mon Jan 7 17:12:28 2019 +0100
SLING-8203 Introduce "skip" parameter for sling:fsmount and sling:fsunmount goals
---
.../apache/sling/maven/bundlesupport/AbstractFsMountMojo.java | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/src/main/java/org/apache/sling/maven/bundlesupport/AbstractFsMountMojo.java b/src/main/java/org/apache/sling/maven/bundlesupport/AbstractFsMountMojo.java
index d6eaf42..7d53418 100644
--- a/src/main/java/org/apache/sling/maven/bundlesupport/AbstractFsMountMojo.java
+++ b/src/main/java/org/apache/sling/maven/bundlesupport/AbstractFsMountMojo.java
@@ -58,6 +58,12 @@ abstract class AbstractFsMountMojo extends AbstractBundlePostMojo {
private File fileVaultFilterXmlFile;
/**
+ * If set to <code>true</code> Sling File System Resource mount/unmount commands are ignored.
+ */
+ @Parameter(property = "sling.fsmount.skip", defaultValue = "false", required = true)
+ private boolean skip;
+
+ /**
* The Maven project.
*/
@Parameter(defaultValue = "${project}", required = true, readonly = true)
@@ -65,6 +71,11 @@ abstract class AbstractFsMountMojo extends AbstractBundlePostMojo {
@Override
public void execute() throws MojoExecutionException, MojoFailureException {
+ if (skip) {
+ getLog().debug("Skipping fsmount/fsunmount operation as instructed.");
+ return;
+ }
+
String targetUrl = getConsoleTargetURL();
// ensure required bundles are installed