diff --git a/docs/manual/CoreTypes/filterset.html b/docs/manual/CoreTypes/filterset.html index ad9edc6c0..21bec066f 100644 --- a/docs/manual/CoreTypes/filterset.html +++ b/docs/manual/CoreTypes/filterset.html @@ -14,6 +14,9 @@ or be read in from a file. FilterSets can appear inside tasks that support this feature or at the same level as <target> - i.e., as children of <project>.

+

FilterSets support the id and refid attributes. +You can define a FilterSet with an id attribute and then refer +to that definition from another FilterSet with a refid attribute.

In addition, FilterSets can specify begintoken and/or endtoken attributes to define what to match.

@@ -116,6 +119,16 @@ but wish to replace the token %DATE* with today's date.

</copy> +

Define a FilterSet and reference it later.

+
+<filterset id="myFilterSet" begintoken="%" endtoken="*">
+  <filter token="DATE" value="${TODAY}"/>
+</filterset>
+
+<copy file="${build.dir}/version.txt" toFile="${dist.dir}/version.txt">
+  <filterset refid="myFilterSet"/>
+</copy>
+

Copyright © 2001-2002 Apache Software Foundation.