--- Mark <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I want to make a task to rename all files of pattern
> abc*.htm to index.htm recursively.
>
> I tried following the example toward the end of the
> Move task documentation (i.e. adding a .bak
> extension
> to all files) but that didn't work.
>
> This is what I did:
>
> <move todir="topdir/html" includeemptydirs="false">
> <fileset dir="topdir/html">
> <include name="**/abc*.htm"/>
> </fileset>
> <mapper type="glob" from="abc*.htm"
> to="index.htm"/>
> </move>
>
> None of the files were renamed.
>
> None of the directories will have more than one file
> matching the pattern so that shouldn't be an issue.
>
> Can someone offer a suggestion on what is wrong or
> how
> I should go about doing this?
>
> Thanks,
>
> Mark
>
Update: this does rename such a file (only) if it is
in the top directory. However it renames "abcxx.htm"
to "index.htmxx", and "abc12.htm" to "index.htm12",
etc. Is this a bug?
More importanly, is there no way to recursively rename
a file pattern?? Was it possible with the deprecated
Rename task?
____________________________________________________________________________________
Got a little couch potato?
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]