From 77ebc51b5b9031863fb44b7ce953f91a63e7f0c6 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Wed, 17 Jul 2002 07:36:51 +0000 Subject: [PATCH] Merge from the 1.5 branch. PR: 10875 git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273125 13f79535-47bb-0310-9956-ffa450edef68 --- WHATSNEW | 11 +++++++++-- .../tools/ant/filters/util/ChainReaderHelper.java | 5 +++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/WHATSNEW b/WHATSNEW index 460de4b74..55ec69981 100644 --- a/WHATSNEW +++ b/WHATSNEW @@ -15,13 +15,19 @@ Fixed bugs: * The sh wrapper script could fail if you started Ant from a directory with whitespace in its name. +* ant -diagnostics was not working properly when the task dependency + was missing and was just printing the missing dependency. + +* The ExpandProperties filter threw NPEs when defined using + the format. + Other changes: -------------- * can now create XML output. * has a new srcfile attribute that can make it read -properties files and output them instead of Ant's properties. + properties files and output them instead of Ant's properties. * will now resolve filters recursively. @@ -29,7 +35,8 @@ properties files and output them instead of Ant's properties. * All tasks can be used outside of s -* Appendix E of Java Development with Ant (Loughran/Hatcher) contributed to the docs +* Appendix E of Java Development with Ant (Loughran/Hatcher) + contributed to the docs Changes from Ant 1.5beta3 to Ant 1.5 ==================================== diff --git a/src/main/org/apache/tools/ant/filters/util/ChainReaderHelper.java b/src/main/org/apache/tools/ant/filters/util/ChainReaderHelper.java index 99ac8a840..cc48a30c0 100644 --- a/src/main/org/apache/tools/ant/filters/util/ChainReaderHelper.java +++ b/src/main/org/apache/tools/ant/filters/util/ChainReaderHelper.java @@ -196,6 +196,11 @@ public final class ChainReaderHelper { final Reader[] rdr = {instream}; instream = (Reader) constructors[j].newInstance(rdr); + if (project != null && + instream instanceof BaseFilterReader) { + ((BaseFilterReader) + instream).setProject(project); + } if (Parameterizable.class.isAssignableFrom(clazz)) { final Parameter[] params = filter.getParams(); ((Parameterizable)