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

Radu Cotescu edited comment on SLING-6121 at 10/10/16 11:16 AM:
----------------------------------------------------------------

The glob pattern does not need to start with a {{/}}. If it does (e.g. 
{{glob:/a/\*\*/\*.html}}), then the glob will match only resources from that 
tree. If it doesn't, then the 
{{org.apache.sling.resourceresolver.impl.observation.ResourceChangeListenerInfo}}
 will append the search paths to that glob pattern.

There's no support yet for something like {{glob:./foo/\*/.html}}.


was (Author: radu.cotescu):
The glob pattern does not need to start with a {{/}}. If it does (e.g. 
{{glob:/a/**/*.html}}), then the glob will match only resources from that tree. 
If it doesn't, then the 
{{org.apache.sling.resourceresolver.impl.observation.ResourceChangeListenerInfo}}
 will append the search paths to that glob pattern.

There's no support yet for something like {{glob:./foo/*/.html}}.

> Clarify glob pattern handling and support globs and search paths
> ----------------------------------------------------------------
>
>                 Key: SLING-6121
>                 URL: https://issues.apache.org/jira/browse/SLING-6121
>             Project: Sling
>          Issue Type: Sub-task
>          Components: API, JCR, ResourceResolver
>            Reporter: Carsten Ziegeler
>            Assignee: Radu Cotescu
>             Fix For: JCR Resource 2.8.2, API 2.15.0, Resource Resolver 1.4.20
>
>
> Looking at the documentation of the glob pattern it is a little bit unclear 
> to me:
> Does the part after the prefix "glob:" need to start with a "/" ? If not, 
> what does it mean?
> Is the special token for search paths supported, e.g. glob:./foo/**/*.html ?
> If not, we should implement this



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

Reply via email to