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>&lt;target&gt;</CODE> - i.e., as
 children of 
 <CODE>&lt;project&gt;</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 @@
 &lt;/copy&gt;
 </PRE></BLOCKQUOTE>
 
+<p>Define a FilterSet and reference it later.</p>
+<BLOCKQUOTE><PRE>
+&lt;filterset id=&quot;myFilterSet&quot; begintoken=&quot;%&quot; 
endtoken=&quot;*&quot;&gt;
+  &lt;filter token=&quot;DATE&quot; value=&quot;${TODAY}&quot;/&gt;
+&lt;/filterset&gt;
+
+&lt;copy file=&quot;${build.dir}/version.txt&quot; toFile=&quot;${dist.dir}/
version.txt&quot;&gt;
+  &lt;filterset refid=&quot;myFilterSet&quot;/&gt;
+&lt;/copy&gt;
+</PRE></BLOCKQUOTE>
 <HR>
 
 <P align=center>Copyright &copy; 2001-2002 Apache Software 
Foundation.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>