diff --git a/WHATSNEW b/WHATSNEW index 48aa35a0e..c24d3aebd 100644 --- a/WHATSNEW +++ b/WHATSNEW @@ -436,6 +436,9 @@ Fixed bugs: separator other than "/". Bugzilla Report 35649. + * The update attribute of the modified selector was ignored. + Bugzilla Report 32597. + Other changes: -------------- * The get task now also follows redirects from http to https diff --git a/src/main/org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelector.java b/src/main/org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelector.java index 9fa8c6875..049e127e1 100644 --- a/src/main/org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelector.java +++ b/src/main/org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelector.java @@ -298,8 +298,6 @@ public class ModifiedSelector extends BaseExtendSelector Cache defaultCache = new PropertiesfileCache(cachefile); Algorithm defaultAlgorithm = new DigestAlgorithm(); Comparator defaultComparator = new EqualComparator(); - update = true; - selectDirectories = true; // // ----- Set the main attributes, pattern '*' ----- diff --git a/src/tests/antunit/types/selectors/modified-test.xml b/src/tests/antunit/types/selectors/modified-test.xml new file mode 100644 index 000000000..a4c43e043 --- /dev/null +++ b/src/tests/antunit/types/selectors/modified-test.xml @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + + + + + + + Hello + + + + + + + + + + + + + + + + + + + + + + world + + + + + + + +