You have to enforce a directory scanning, so that the modified selector has to do something. Without any write operation (move, copy) the simplest thing is storing the file list.
<pathconvert property="not-used"> <fileset> <modified> Jan -----Ursprüngliche Nachricht----- Von: Fabricio M. Sanchez [mailto:[EMAIL PROTECTED] Gesendet: Montag, 20. August 2007 16:21 An: user@ant.apache.org Betreff: Regenerating Modified Selector cache file (after it's deleted) Hi there, I've been using google for a while with no useful answers... Hopefully someone can point me in the right direction. My "check" target works fine, it copies any files that are different to the cache.properties file into my mod_src directory (excluding directories). However, I am trying to regenerate my cache file with the "reset" target and I don't know how. Is there a way to just regenerate the cache from scratch (after it's been deleted)? (Without copying all the files as part of the process). <target name="check"> <copy todir="mod_src"> <fileset dir="src"> <and> <modified update="true" seldirs="true" cache="propertyfile" algorithm="digest" comparator="equal"> <param name="cache.cachefile" value="cache.properties"/> <param name="algorithm.algorithm" value="MD5"/> </modified> <type type="file"/> </and> </fileset> </copy> </target> <target name="reset"> <!-- delete the cache to force an update --> <delete file="cache.properties"/> <!-- update the cache without copying files --> <fileset dir="src"> <modified update="true" seldirs="true" cache="propertyfile" algorithm="digest" comparator="equal"> <param name="cache.cachefile" value="cache.properties"/> <param name="algorithm.algorithm" value="MD5"/> </modified> </fileset> </target> Thank you, Fabricio No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.484 / Virus Database: 269.12.0/961 - Release Date: 19/08/2007 07:27 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]