cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johannes Hoechstaedter <j.hoechstaed...@memocomp.de>
Subject Re: regexp in directory generator
Date Mon, 21 Jul 2008 07:47:09 GMT
Hi,

if anyone is interested in the solution of this problem, look here:

http://www.mail-archive.com/users@cocoon.apache.org/msg28942.html

The names of the subdirs are the problem.

cheers
Johannes

Johannes Hoechstaedter schrieb:
> Hi,
>
> has anybody experiences about the directory generator and includes 
> with regexp?
>
> Thats my generator:
>
> <map:generate type="directory" 
> src="context://WEB-INF/classes/${org.gentatoo.descriptors.homeDir}">
>                                    <map:parameter name="depth" 
> value="2"/>
>                                      <map:parameter name="include" 
> value=".\.xml$"/>
>                   </map:generate>
>
> homeDir looks as follows:
>
> /tables
> /personnel
>   1.xml
>   2.xml
>   3.xml
>   4.txt
>
> I only want the xml files.
>
> For the regexp I tried:
>
> "." -> puts out everything (the same as without include parameter)
> ".xml" -> only parent directory tables
> ".\.xml$" -> only parent directory tables
> ".*\.xml$" -> only parent directory tables
> and some more.
>
> The Pattern [xml]$ for example filters out the txt file but shows the 
> xml files to me. I can't use it because .ml files for example are 
> shown, too. [(xml)]$ is the same.
>
> Johannes
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message