move rename date pattern

Erik Itter <[email protected]>
Newsgroups gmane.comp.jakarta.ant.user
Message-ID <[email protected]>
Hello,

I am trying to automate my environment a little more and thought to do 
the following:

In directory $foo$ take file [\d\d\d\d-\d\d-\d\d zzz_today.ico] and 
rename it to [yyyy-mm-dd zzz_today.ico] filling in the actual current 
date. Further I'd like to rename another file [\d\d\d\d-\d\d-\d\d 
zzz_one week.ico] to [yyyy-mm-dd zzz_one week.ico], obviously meaning 
the actual current date plus seven days.

Guess I should be able to do it with some form of

<move todir="$foo$"...>
     <mapper type="regexp" .../>
</move>

but I am somewhat lost. I'd like to do it with the tasks provided if 
possible instead of writing my own task. All kinds of help/ advice/ 
examples appreciated, of course.

thx, Erik
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.