I really like the Ant ‘sync’ task, but what I need to do is to copy files from a source folder to a destination folder based on whether or not the destination file’s contents match the source file’s contents, instead of checking the file modification date (which is what ‘sync’ does currently). Is there any way to accomplish this? I noticed that there is an Ant comparator for file content, as well as a ‘checksum’ task which may come in handy.
Thanks!
I was able to accomplish this using Ant’s ‘copy’ task, which had a fileset with the
differentselector (see http://ant.apache.org/manual/Types/selectors.html#differentselect). It’s powerful stuff.