You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2007/11/27 11:04:34 UTC

DO NOT REPLY [Bug 43970] New: - selector does not update cache

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: u.pollaehne@seeburger.de


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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


DO NOT REPLY [Bug 43970] - selector does not update cache

Posted by bu...@apache.org.
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


jeanpaul.stevens@minfin.fed.be changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jeanpaul.stevens@minfin.fed.
                   |                            |be




-- 
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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


DO NOT REPLY [Bug 43970] - selector does not update cache

Posted by bu...@apache.org.
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





------- Additional Comments From jeanpaul.stevens@minfin.fed.be  2007-11-29 00:02 -------
Created an attachment (id=21202)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=21202&action=view)
modify the the ModifiedSelector.java 

   /**
    * save the cache file
    */
    protected void saveCache() {
	if (getModified() > 1) { // oupps! when your only one file to change !
	    cache.save();
	    setModified(0);
	}
    }


-- 
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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


DO NOT REPLY [Bug 43970] - selector does not update cache

Posted by bu...@apache.org.
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


peterreilly@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE




------- Additional Comments From peterreilly@apache.org  2007-11-29 00:46 -------
Thanks for the report.
This fix has already been done and will be be in ant 1.7.1.


*** This bug has been marked as a duplicate of 42802 ***

-- 
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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org