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: [email protected]
ReportedBy: [EMAIL PROTECTED]
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.