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

-- 
Michael Ludwig

Reply via email to