DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=43970>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43970 Summary: selector <modified> does not update cache Product: Ant Version: 1.7.0 Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P2 Component: Core AssignedTo: dev@ant.apache.org ReportedBy: [EMAIL PROTECTED] The modified selector does not update the cache. A small test script: <project name="test" default="test" basedir="."> <target name="init"> <fileset dir="${basedir}" id="fs"> <modified seldirs="false" update="true"> <param name="cache.cachefile" value="${basedir}/test.props"/> </modified> <include name="*.properties"/> </fileset> </target> <target name="test" depends="init"> <property name="fs_p" refid="fs"/> <echo>fs = ${fs_p}</echo> </target> </project> Run this script in a directory with some property files. With ANT 1.6.5 the cache file is created and on the second execution the fileset is empty. If you now modify one of the property files it is recognized as modified (the fileset contains the file) and the cache is updated so that the next execution shows an empty fileset. With ANT 1.7.0 on the first execution the cache is created. The second execution shows an empty fileset (ok). After modifying one of the properties the fileset contains the modified property file (ok too). For each subsequent execution of the script the same property file is shown as modified (since the cache is not updated). It does not matter if update=true is given explicit or implicit. Explicit or implicit cache filename does not matter. The delayupdate=false also does not change anything. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]