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 2021/12/13 15:40:30 UTC

[sling-org-apache-sling-jcr-contentloader] branch master updated: SLING-10992 update javadocs for "maven:mount" directive

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-org-apache-sling-jcr-contentloader.git


The following commit(s) were added to refs/heads/master by this push:
     new 26a83f5  SLING-10992 update javadocs for "maven:mount" directive
26a83f5 is described below

commit 26a83f50f9f0a2eeeed5d2f0eb0eb11095b77725
Author: Stefan Seifert <st...@users.noreply.github.com>
AuthorDate: Mon Dec 13 16:31:00 2021 +0100

    SLING-10992 update javadocs for "maven:mount" directive
---
 src/main/java/org/apache/sling/jcr/contentloader/PathEntry.java | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/sling/jcr/contentloader/PathEntry.java b/src/main/java/org/apache/sling/jcr/contentloader/PathEntry.java
index 753763c..37ee9e6 100644
--- a/src/main/java/org/apache/sling/jcr/contentloader/PathEntry.java
+++ b/src/main/java/org/apache/sling/jcr/contentloader/PathEntry.java
@@ -108,7 +108,12 @@ public class PathEntry extends ImportOptions {
      */
     public static final String IGNORE_CONTENT_READERS_DIRECTIVE = "ignoreImportProviders";
 
-    /** Used in https://github.com/apache/sling-maven-plugin/blob/d67d5c1900782c68c1bfcbdc499c02cf31224916/sling-maven-plugin/src/main/java/org/apache/sling/maven/bundlesupport/fsresource/SlingInitialContentMounter.java#L97 */
+    /**
+     * The flag "maven:mount" is not actually used by the JCR Content Loader. It can be used
+     * to signal to the "mount" goal of the sling-maven-plugin to ignore a certain Sling-Initial-Content entry
+     * of a Maven project when "sling:mount" is executed on the command line.
+     * Reference: https://github.com/apache/sling-maven-plugin/blob/d67d5c1900782c68c1bfcbdc499c02cf31224916/sling-maven-plugin/src/main/java/org/apache/sling/maven/bundlesupport/fsresource/SlingInitialContentMounter.java#L97
+     */
     private static final String MAVEN_MOUNT_DIRECTIVE = "maven:mount";
 
     /** All directive names which are valid for header Sling-Initial-Content */