From 6ecbe242189a8d7feba3d56c8ec89582e77b1b29 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Thu, 14 Sep 2000 07:19:52 +0000 Subject: [PATCH] Moved ${} expansion and task evaluation to runtime. This has a lot of consequences, most notably those listed in WHATSNEW. This also affects the behavior of several other tasks like who will now do their job at runtime instead of parser time as well. I've changed the version number in build.xml to reflect this bigger change. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267988 13f79535-47bb-0310-9956-ffa450edef68 --- WHATSNEW | 10 ++ build.xml | 2 +- docs/index.html | 42 +++++- .../org/apache/tools/ant/ProjectHelper.java | 127 +++++++++++------ .../apache/tools/ant/RuntimeConfigurable.java | 130 ++++++++++++++++++ src/main/org/apache/tools/ant/Target.java | 1 + src/main/org/apache/tools/ant/Task.java | 20 +++ .../apache/tools/ant/taskdefs/Available.java | 2 +- .../org/apache/tools/ant/taskdefs/Filter.java | 2 +- .../apache/tools/ant/taskdefs/Property.java | 2 +- .../org/apache/tools/ant/taskdefs/Tstamp.java | 2 +- 11 files changed, 291 insertions(+), 49 deletions(-) create mode 100644 src/main/org/apache/tools/ant/RuntimeConfigurable.java diff --git a/WHATSNEW b/WHATSNEW index d010bb580..72f1f4301 100644 --- a/WHATSNEW +++ b/WHATSNEW @@ -3,6 +3,16 @@ Changes from Ant 1.1 to the current sources Changes that could break older environments: -------------------------------------------- +* Semantics of has changed again in the hope to be more +intuitive. ${} expansion now happens at runtime and tags +living inside of targets only take effect if they are visited at +runtime. + +As a side effect of this change, task's attributes get set at runtime +not at parser time as well, which might change the results of +