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)