You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Marius Petria (JIRA)" <ji...@apache.org> on 2015/12/09 09:51:11 UTC

[jira] [Commented] (SLING-5367) Allow specification of include/exclude patterns at request level

    [ https://issues.apache.org/jira/browse/SLING-5367?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15048315#comment-15048315 ] 

Marius Petria commented on SLING-5367:
--------------------------------------

We will have three types of modifiers for a package
1. package builder filters (applied to all package created by that package builder)
2. request filters (applied to request)
3. isDeep (applied to current request)

{noformat}
- content
  - parent1
     - jcr:content
     - child
        - jcr:content
{noformat}

{noformat}
DISTRIBUTE paths=[/content/parent] includes=[/content/parent/jcr:content] isDeep=false 

DISTRIBUTED
/content/page
/content/page/jcr:content
{noformat}

> Allow specification of include/exclude patterns at request level
> ----------------------------------------------------------------
>
>                 Key: SLING-5367
>                 URL: https://issues.apache.org/jira/browse/SLING-5367
>             Project: Sling
>          Issue Type: Improvement
>          Components: Distribution
>            Reporter: Marius Petria
>
> We should allow filters to be specified at request level
> {noformat}
>      * | Pattern        | Matches
>      * | /foo           | exactly "/foo"
>      * | /foo.*         | all paths starting with "/foo"
>      * | ^.* /foo[^/]*$ | all files starting with "foo"
>      * | /foo/[^/]*$    | all direct children of /foo
>      * | /foo/.*        | all children of /foo
>      * | /foo(/.*)?     | all children of /foo and foo itself
> {noformat}
> [1] https://svn.apache.org/repos/asf/jackrabbit/commons/filevault/trunk/vault-core/src/main/java/org/apache/jackrabbit/vault/fs/filter/DefaultPathFilter.java



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)