ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ludwig, Michael" <Michael.Lud...@delphi-mb.de>
Subject RE: simplify copy with regexpmapper (mapper/regexp)
Date Sat, 18 Sep 2010 15:13:48 GMT
> The following does not work for me, though:
> 
> <project default="copy">
>   <property name="source.dir" location="src"/>
>   <property name="target.dir" location="lib"/>
>   <target name="copy">
>     <copy todir="${target.dir}">
>       <fileset dir="${source.dir}">
>         <include name="*/lib/**/*.*"/>
>         <exclude name="**/urmel.*"/>
>       </fileset>
>       <regexpmapper from="${source.dir}/*/lib/(.*)" to="\1" 
> handledirsep="1"/>

And this is hardly surprising as I was confounding shell patterns and
regular expressions. The following, while not working, is at least a
suitable regular expression:

  <regexpmapper handledirsep="1"
    from="${source.dir}/[-_a-zA-Z0-9]+/lib/(.*)"
	  to="\1" />

How is @handledirsep supposed to work?
-- 
Michael Ludwig
Mime
View raw message