From df0fa4d4ab0523b1af55b207c86ded8f896a14c5 Mon Sep 17 00:00:00 2001 From: Matthew Jason Benson Date: Mon, 11 Dec 2006 22:36:06 +0000 Subject: [PATCH] Regression: was evaluating nested content only once, so that it could not e.g. pick up files that didn't exist the first time through. Bugzilla 41151. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@485926 13f79535-47bb-0310-9956-ffa450edef68 --- WHATSNEW | 7 +++++-- src/main/org/apache/tools/ant/types/Path.java | 1 + .../antunit/types/resources/latepath-test.xml | 17 +++++++++++++++++ 3 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 src/tests/antunit/types/resources/latepath-test.xml diff --git a/WHATSNEW b/WHATSNEW index bd7f59ec3..862447ea7 100644 --- a/WHATSNEW +++ b/WHATSNEW @@ -42,8 +42,11 @@ Fixed bugs: * XmlProperty overrides previously set property value when handling duplicate elements. Bugzilla 41080. -* Having many tasks causes OOM. - Bugzilla 41049. +* Having many tasks causes OOM. Bugzilla 41049. + +* Regression: was evaluating nested content only once, so that it could + not e.g. pick up files that didn't exist the first time through. + Bugzilla 41151. Other changes: -------------- diff --git a/src/main/org/apache/tools/ant/types/Path.java b/src/main/org/apache/tools/ant/types/Path.java index cb9a64be8..6a5201ca2 100644 --- a/src/main/org/apache/tools/ant/types/Path.java +++ b/src/main/org/apache/tools/ant/types/Path.java @@ -277,6 +277,7 @@ public class Path extends DataType implements Cloneable, ResourceCollection { if (union == null) { union = new Union(); union.setProject(getProject()); + union.setCache(false); } union.add(c); setChecked(false); diff --git a/src/tests/antunit/types/resources/latepath-test.xml b/src/tests/antunit/types/resources/latepath-test.xml new file mode 100644 index 000000000..1468237b0 --- /dev/null +++ b/src/tests/antunit/types/resources/latepath-test.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + +