Copy modified files from a directory
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   yves_sy
Posted On:   Thursday, October 16, 2003 05:26 AM

Hi! I've been looking at the ANT Manual and I havent been able to find a way of copying only modified files from a directory. I'm thinking about passing a time as an argument and copying all files in the directory that were modified after that given time. Can anyone help?

Thanks,
Yves

Re: Copy modified files from a directory

Posted By:   Anonymous  
Posted On:   Friday, October 17, 2003 03:38 AM

copies only files which timestamps are newer than the one in the dest directory. For more control you can use nested selectors. E.g.







will copy only files whichs content has changed (controlled by a stored MD5 hashvalue). See the manual for selectors. Maybe you should use Ant 1.6beta2 (just released) which has much improvents on this sector.
About | Sitemap | Contact