From 12a8163d89f051f1950a8e2b136edbe08b6cc711 Mon Sep 17 00:00:00 2001
From: Stefan Bodewig
Date: Fri, 12 Apr 2002 10:17:53 +0000
Subject: [PATCH] Document new replacefilterfile attribute of
PR: 7320
Make sure resets its state.
Cosmetics.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272398 13f79535-47bb-0310-9956-ffa450edef68
---
WHATSNEW | 4 +
docs/manual/CoreTasks/replace.html | 14 +-
.../org/apache/tools/ant/taskdefs/Rename.java | 7 +-
.../apache/tools/ant/taskdefs/Replace.java | 145 +++++++++++-------
4 files changed, 108 insertions(+), 62 deletions(-)
diff --git a/WHATSNEW b/WHATSNEW
index 26c91161a..1dcb86f94 100644
--- a/WHATSNEW
+++ b/WHATSNEW
@@ -293,6 +293,10 @@ Other changes:
* now supports a source attribute to enable javadoc to
handle assertions present in JDK 1.4 source code.
+* supports a new replacefilterfile attribute that
+ automatically turns all properties of a given file into
+ replacefilters.
+
Changes from Ant 1.4 to Ant 1.4.1
===========================================
diff --git a/docs/manual/CoreTasks/replace.html b/docs/manual/CoreTasks/replace.html
index c49040c65..f89b08c8d 100644
--- a/docs/manual/CoreTasks/replace.html
+++ b/docs/manual/CoreTasks/replace.html
@@ -38,8 +38,9 @@ must use a nested <replacetoken>
element.
token |
the token which must be replaced. |
- Yes, unless a nested replacetoken
- element is used. |
+ Yes, unless a nested
+ replacetoken element or the replacefilterfile
+ attribute is used. |
value |
@@ -60,6 +61,13 @@ must use a nested <replacetoken>
element.
valid property file from which properties specified using nested <replacefilter> elements are drawn. |
Yes only if property attribute of <replacefilter> is used. |
+
+ replacefilterfile |
+ valid property file. Each property will be
+ treated as a replacefilter where token is the name of
+ the property and value is the properties value.
+ | No. |
+
includes |
comma separated list of patterns of files that must be
@@ -169,7 +177,7 @@ token]]></replacevalue>
Note: It is possible to use either the token/<replacetoken> and value/<replacevalue> attributes/elements, the nested replacefilter elements, or both in the same operation.
-Copyright © 2001 Apache Software Foundation. All rights
+ Copyright © 2001-2002 Apache Software Foundation. All rights
Reserved.
|