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=44430>.
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=44430

           Summary: uptodate doesn't detect the removal of a source file
           Product: Ant
           Version: 1.7.0
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


Like explained in a comment for #39122, the source fileset of uptodate 
considers only normal files, not directories.

Now, if I delete a source file, the only file whose modification time is 
affected, is its parent directory. But uptodate fails to detect this as a 
modification to the sources so it thinks the target is uptodate.

In practice this is a problem for test classes, for example: if I remove a test 
java file, the test will still be run, because its class file still exists.

To fix this, the source fileset should include all directories, too.

-- 
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.

Reply via email to