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:49:10 UTC

[sling-org-apache-sling-jcr-repoinit] 27/43: SLING-5449 - move the repoinit modules under extensions, they do contain Sling-specific stuff

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.jcr.repoinit-1.0.0
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-jcr-repoinit.git

commit 59387710461ad242814302eda46441580ec0a0cb
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Thu May 19 12:50:58 2016 +0000

    SLING-5449 - move the repoinit modules under extensions, they do contain Sling-specific stuff
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/repoinit/oak-jcr@1744564 13f79535-47bb-0310-9956-ffa450edef68
---
 src/main/java/org/apache/sling/repoinit/jcr/JcrRepoInitOpVisitor.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/sling/repoinit/jcr/JcrRepoInitOpVisitor.java b/src/main/java/org/apache/sling/repoinit/jcr/JcrRepoInitOpVisitor.java
index e3680bb..8abb41b 100644
--- a/src/main/java/org/apache/sling/repoinit/jcr/JcrRepoInitOpVisitor.java
+++ b/src/main/java/org/apache/sling/repoinit/jcr/JcrRepoInitOpVisitor.java
@@ -124,9 +124,10 @@ public class JcrRepoInitOpVisitor implements OperationVisitor {
                 final String fullPath = parentPath + "/" + psd.getSegment();
                 try {
                     if(session.itemExists(fullPath)) {
-                        // TODO warn if primary type is not correct 
+                        log.info("Path already exists, nothing to do (and not checking its primary type for now): {}", fullPath); 
                     } else {
                         final Node n = parentPath.equals("") ? session.getRootNode() : session.getNode(parentPath);
+                        log.info("Creating node {} with primary type {}", fullPath, psd.getPrimaryType());
                         n.addNode(psd.getSegment(), psd.getPrimaryType());
                     }
                 } catch(Exception e) {

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.