Browse Source

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
master
Stefan Bodewig 23 years ago
parent
commit
77ebc51b5b
2 changed files with 14 additions and 2 deletions
  1. +9
    -2
      WHATSNEW
  2. +5
    -0
      src/main/org/apache/tools/ant/filters/util/ChainReaderHelper.java

+ 9
- 2
WHATSNEW View File

@@ -15,13 +15,19 @@ Fixed bugs:
* The sh wrapper script could fail if you started Ant from a directory * The sh wrapper script could fail if you started Ant from a directory
with whitespace in its name. 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 <filterreader> format.

Other changes: Other changes:
-------------- --------------


* <echoproperties> can now create XML output. * <echoproperties> can now create XML output.


* <echoproperties> has a new srcfile attribute that can make it read * <echoproperties> 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.


* <filterset> will now resolve filters recursively. * <filterset> 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 <target>s * All tasks can be used outside of <target>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 Changes from Ant 1.5beta3 to Ant 1.5
==================================== ====================================


+ 5
- 0
src/main/org/apache/tools/ant/filters/util/ChainReaderHelper.java View File

@@ -196,6 +196,11 @@ public final class ChainReaderHelper {
final Reader[] rdr = {instream}; final Reader[] rdr = {instream};
instream = instream =
(Reader) constructors[j].newInstance(rdr); (Reader) constructors[j].newInstance(rdr);
if (project != null &&
instream instanceof BaseFilterReader) {
((BaseFilterReader)
instream).setProject(project);
}
if (Parameterizable.class.isAssignableFrom(clazz)) { if (Parameterizable.class.isAssignableFrom(clazz)) {
final Parameter[] params = filter.getParams(); final Parameter[] params = filter.getParams();
((Parameterizable) ((Parameterizable)


Loading…
Cancel
Save