|
|
@@ -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 <CODE><target></CODE> - i.e., as |
|
|
|
children of |
|
|
|
<CODE><project></CODE>.</P> |
|
|
|
<P>FilterSets support the <code>id</code> and <code>refid</code> attributes. |
|
|
|
You can define a FilterSet with an <code>id</code> attribute and then refer |
|
|
|
to that definition from another FilterSet with a <code>refid</code> attribute. |
|
|
|
<p>In addition, FilterSets can specify |
|
|
|
<code>begintoken</code> and/or |
|
|
|
<code>endtoken</code> attributes to define what to match.</p> |
|
|
@@ -116,6 +119,16 @@ but wish to replace the token <code>%DATE*</code> with today's date.</p> |
|
|
|
</copy> |
|
|
|
</PRE></BLOCKQUOTE> |
|
|
|
|
|
|
|
<p>Define a FilterSet and reference it later.</p> |
|
|
|
<BLOCKQUOTE><PRE> |
|
|
|
<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> |
|
|
|
</PRE></BLOCKQUOTE> |
|
|
|
<HR> |
|
|
|
|
|
|
|
<P align=center>Copyright © 2001-2002 Apache Software Foundation. |
|
|
|