Eric Norman created SLING-11571:
-----------------------------------
Summary: repoinit: allow add or remove mixin types
Key: SLING-11571
URL: https://issues.apache.org/jira/browse/SLING-11571
Project: Sling
Issue Type: New Feature
Components: Repoinit
Reporter: Eric Norman
Assignee: Eric Norman
Fix For: Repoinit Parser 1.7.2, Repoinit JCR 1.1.42, Feature Model
Analyser 1.6.8, slingfeature-maven-plugin 1.6.8
The use case here is for a node that is created by a base feature. Other
(optional) features could add a mixin to the existing node later if they are
also included in the distribution.
The proposed syntax would be:
{code:java}
add mixin mix:one to /thePath1
add mixin mix:one,mix:two to /thePath1,/thePath2
remove mixin mix:one from /thePath1
remove mixin mix:one,mix:two from /thePath1,/thePath2
{code}
If the specified paths do not exist, a warning is logged and nothing is
changed. Otherwise, the mixin is added (or removed) from those paths.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)