You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bd...@apache.org on 2021/10/01 08:52:36 UTC

[sling-org-apache-sling-repoinit-parser] branch master updated: @minor - clarify docs

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

bdelacretaz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-repoinit-parser.git


The following commit(s) were added to refs/heads/master by this push:
     new 6e649d3  @minor - clarify docs
6e649d3 is described below

commit 6e649d38b696f6f84ec5434bda7b30d62513d994
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Fri Oct 1 10:52:18 2021 +0200

    @minor - clarify docs
---
 src/test/resources/testcases/test-20.txt | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/src/test/resources/testcases/test-20.txt b/src/test/resources/testcases/test-20.txt
index 223d1b2..1fd26d6 100644
--- a/src/test/resources/testcases/test-20.txt
+++ b/src/test/resources/testcases/test-20.txt
@@ -1,5 +1,17 @@
 # Various "create path" tests
+
+# Nodetypes:
+# A nodetype in brackets right after "create path", like
+# sling:Folder below, sets the default type for all path
+# segments of this statement.
+# A nodetype in brackets at the end of a path segment, like
+# nt:unstructured below, applies just to that path segment.
+# If no specific nodetype is set, the repository uses its
+# default based on node type definitions.
+
 create path (sling:Folder) /var/discovery(nt:unstructured)/somefolder
+
+# more tests and examples
 create path /one/two/three
 create path /three/four(nt:folk)/five(nt:jazz)/six
 create path (nt:x) /seven/eight/nine