[Yanel-dev] yarep VFSMap filter

Michael Wechner michael.wechner at wyona.com
Thu Jan 25 15:06:40 CET 2007


Josias Thöny wrote:

>Hi all,
>
>If you have a look at:
>http://yanel.wyona.org/hello/
>you will see that a folder named "/hello/.svn/" is displayed. I guess
>that this folder is not really supposed to appear.
>
>To fix this, I added an option to declare an "ignore" filter for the
>VFSMap, in order to e.g. prevent certains paths to show up as children
>when calling getChildren().
>
>It must be declared as follows:
>
><paths class="org.wyona.yarep.impl.VFileSystemMapImpl" src="content">
>    <ignore pattern=".*\.svn"/>
></paths>
>
>This example will cause the map to ignore all subversion folders. 
>  
>

very cool :-)

>The pattern is a regular expression, and an arbitrary number of ignore
>elements may be specified.
>  
>

you mean like

<ignore pattern="..."/>
<ignore pattern="..."/>

or

<ignore pattern"...,..."/>

?

Cheers

Michi

>Note that this feature is not yet present in the yarep revision which is
>currently used by yanel. Moreover, I only added it to the VFSMap,
>probably it should be added to the default map also.
>  
>

>josias
>
>
>_______________________________________________
>Yanel-development mailing list
>Yanel-development at wyona.com
>http://wyona.com/cgi-bin/mailman/listinfo/yanel-development
>
>  
>


-- 
Michael Wechner
Wyona      -   Open Source Content Management   -    Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
michael.wechner at wyona.com                        michi at apache.org
+41 44 272 91 61




More information about the Yanel-development mailing list