Re: checksum task: how can you use hash in a separate directory

2008-02-14 Thread Martin Ficker
Hi, pathconvert can be used to perform "String manipulation" on filesets or pathes. The following would echo a linebreak seperated list of the files: (append after the previous example) ${result.prop} For further manipulation as a fileset you cou

Re: checksum task: how can you use hash in a separate directory

2008-02-13 Thread Bill Milbratz
Hi all, Thanks for the resposnes. Martin, that's an elegant example and belongs in the ant documentation. As a follow up to Martin's example: once you have the list of 'result" files (which lists all the .md5 files which differ), how in ant can you generate a list of the *original* files. i.e. s

Re: checksum task: how can you use hash in a separate directory

2008-02-12 Thread Martin Ficker
You could backup the directory with the checksums and later use a fileset with different selector to select those hash file that have changed. Example:

Re: checksum task: how can you use hash in a separate directory

2008-02-12 Thread Bill Milbratz
hi, a clarification: my subject line doesn't match the question. I originally had wondered about using 'todir' as a destination for the checksum files, but realized I had a more basic question. The body mutated; the subject did not. bill

checksum task: how can you use hash in a separate directory

2008-02-12 Thread Bill Milbratz
Hi, Can anyone comment on the best way to solve this problem with the checksum task: I'm looking for a means to do the following: a) take hash-snapshots of shipped files in a directory (e.g. src/jsp) b) later, check the files against the hashes c) ant indicates which files do not match the hash.