Does anyone have a working example of a depend selector that uses a regexp mapper? I must be getting the syntax wrong somehow. Here's what I have:

           <fileset dir="${testRep}" includes="**">
              <depend targetdir="${testSrc}">
                 <mapper id="rmap" type="regexp"
from="${testRep}/(.*)s\.([^/]+)$$" to="${testSrc}/\1\2"/>
              </depend>
           </fileset>

In the above, I'm trying to get files in ${testRep} that are newer than the files in ${testSrc}, and I'm using the mapper because files in ${testRep} are prefixed with an "s." I'm pretty sure the mapper is working, because the ant code:

      <pathconvert property="x" pathsep=" ">
        <path>
           <fileset dir="${testRep}" includes="**"/>
        </path>
        <mapper refid="rmap"/>
     </pathconvert>
     <echo>mapped to files ${x}</echo>

does in fact print out the translated file names. However, the fileset (from the first bit of code) is empty, even though the files in ${testRep} are in fact newer.

Thanks,
      --Paul Lynch

----------------------------------------------
Mailblocks - A Better Way to Do Email
http://about.mailblocks.com/info


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to