You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2002/09/05 05:26:41 UTC
DO NOT REPLY [Bug 12324] New: -
Missing doc'n for FilterSet id/refid attributes
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12324>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12324
Missing doc'n for FilterSet id/refid attributes
Summary: Missing doc'n for FilterSet id/refid attributes
Product: Ant
Version: 1.5.1Beta1
Platform: All
OS/Version: All
Status: NEW
Severity: Minor
Priority: Other
Component: Documentation
AssignedTo: ant-dev@jakarta.apache.org
ReportedBy: zodiac@holoweb.net
FilterSet supports id and refid attributes but it's not documented. Patch
below fixes this:
Index: docs/manual/CoreTypes/filterset.html
=========================================================
==========
RCS file: /home/cvspublic/jakarta-ant/docs/manual/CoreTypes/
filterset.html,v
retrieving revision 1.9
diff -u -w -B -r1.9 filterset.html
--- docs/manual/CoreTypes/filterset.html 4 Sep 2002 11:05:17 -0000
1.9
+++ docs/manual/CoreTypes/filterset.html 5 Sep 2002 03:22:15 -0000
@@ -14,6 +14,9 @@
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>idref</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 @@
</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.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>