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:31:23 UTC

[sling-org-apache-sling-jcr-contentloader] 01/01: 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 feature/SLING-10992-update-javadocs
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-jcr-contentloader.git

commit f1cc82bfa9642b3c68c77c47cab51a3b78386500
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 */