ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ludwig, Michael" <>
Subject RE: simplify copy with regexpmapper (mapper/regexp)
Date Sat, 18 Sep 2010 15:03:13 GMT
> From: Ludwig, Michael

> Unfortunately, however, the <copy> task in Ant 1.8.1 does not support
> a nested <regexmapper>.
>   copy doesn't support the nested "regexmapper" element.

Fortunately, however, it starts supporting it once you spell it correctly:

  <regexpmapper><!-- there's a "p" here, phonetically debatable -->

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.*"/>
      <regexpmapper from="${source.dir}/*/lib/(.*)" to="\1" handledirsep="1"/>

Michael Ludwig
View raw message