You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2008/05/15 18:19:09 UTC

DO NOT REPLY [Bug 45010] New: ModifiedSelector saveCache fails when single file has changed

https://issues.apache.org/bugzilla/show_bug.cgi?id=45010

           Summary: ModifiedSelector saveCache fails when single file has
                    changed
           Product: Ant
           Version: 1.7.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: notifications@ant.apache.org
        ReportedBy: goetze@dovetail.com


When using the modified selector with a FileSet, the call to saveCache() fails
if a single file has been modified.  The result is that the cache is not
updated and the file is improperly re-selected on subsequent calls.

Here is the existing code in
org.apache.tools.ant.types.selectors.modifiedselectorModifiedSelector.java:

   /**
    * save the cache file
    */
    protected void saveCache() {
        if (getModified() > 1) {
            cache.save();
            setModified(0);
        }
    }

It should probably be rewritten as:

   /**
    * save the cache file
    */
    protected void saveCache() {
        if (getModified() > 0) {
            cache.save();
            setModified(0);
        }
    }


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45010] ModifiedSelector saveCache fails when single file has changed

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45010


Stefan Bodewig <bo...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE
   Target Milestone|---                         |1.7.1




--- Comment #1 from Stefan Bodewig <bo...@apache.org>  2008-08-29 08:11:22 PST ---


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


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.