RE: copyng and renaming files

2007-08-30 Thread Anderson, Rob (Global Trade)
? > > Thank you > > Elisabetta > > -Messaggio originale- > Da: Vijay Aravamudhan [mailto:[EMAIL PROTECTED] > Inviato: mercoledì 29 agosto 2007 12.39 > A: Ant Users List > Oggetto: Re: copyng and renaming files > > > you can achieve the same without

Re: copyng and renaming files

2007-08-29 Thread Vijay Aravamudhan
you can achieve the same without using ant-contrib: by using a flattenmapper to get the list of files (without directory names), and then using that in an include to move from 'destination' to 'destination/old' and then copying from 'origin' to 'destination'. hth, Vijay Kriss wrote: Hi, You

Re: copyng and renaming files

2007-08-29 Thread Kriss
Hi, You can use antcrontib task 'for' and the task basename, as following : tofile="${dest.backup.dir}/${file2copy.filename}"/> tofile="${dest.dir}/${file2copy.filename}"/> Have a nice day, kriss