antoine 2005/05/31 22:30:44
Modified: docs/manual/CoreTypes filterchain.html
Log:
fixed strange example, property names do not usually start with ${
Revision Changes Path
1.29 +9 -9 ant/docs/manual/CoreTypes/filterchain.html
Index: filterchain.html
===================================================================
RCS file: /home/cvs/ant/docs/manual/CoreTypes/filterchain.html,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- filterchain.html 29 Apr 2005 18:58:12 -0000 1.28
+++ filterchain.html 1 Jun 2005 05:30:44 -0000 1.29
@@ -63,7 +63,7 @@
However, they can be declared using some simpler syntax also.<p>
Example:
<blockquote><pre>
-<loadfile srcfile="${src.file}"
property="${src.file.head}">
+<loadfile srcfile="${src.file}"
property="src.file.head">
<filterchain>
<headfilter lines="15"/>
</filterchain>
@@ -71,7 +71,7 @@
</pre></blockquote>
is equivalent to:
<blockquote><pre>
-<loadfile srcfile="${src.file}"
property="${src.file.head}">
+<loadfile srcfile="${src.file}"
property="src.file.head">
<filterchain>
<filterreader
classname="org.apache.tools.ant.filters.HeadFilter">
<param name="lines" value="15"/>
@@ -259,9 +259,9 @@
<p>
<h4>Example:</h4>
-This stores the first 15 lines of the supplied data in the property
${src.file.head}
+This stores the first 15 lines of the supplied data in the property
src.file.head
<blockquote><pre>
-<loadfile srcfile="${src.file}"
property="${src.file.head}">
+<loadfile srcfile="${src.file}"
property="src.file.head">
<filterchain>
<filterreader
classname="org.apache.tools.ant.filters.HeadFilter">
<param name="lines" value="15"/>
@@ -272,7 +272,7 @@
Convenience method:
<blockquote><pre>
-<loadfile srcfile="${src.file}"
property="${src.file.head}">
+<loadfile srcfile="${src.file}"
property="src.file.head">
<filterchain>
<headfilter lines="15"/>
</filterchain>
@@ -280,9 +280,9 @@
</pre></blockquote>
This stores the first 15 lines, skipping the first 2 lines, of the supplied
data
-in the property ${src.file.head}. (Means: lines 3-17)
+in the property src.file.head. (Means: lines 3-17)
<blockquote><pre>
-<loadfile srcfile="${src.file}"
property="${src.file.head}">
+<loadfile srcfile="${src.file}"
property="src.file.head">
<filterchain>
<headfilter lines="15" skip="2"/>
</filterchain>
@@ -824,10 +824,10 @@
This stores the last 10 lines, skipping the last 2 lines, of the supplied
data
-in the property ${src.file.head}. (Means: if supplied data contains 60 lines,
+in the property src.file.head. (Means: if supplied data contains 60 lines,
lines 49-58 are extracted)
<blockquote><pre>
-<loadfile srcfile="${src.file}"
property="${src.file.head}">
+<loadfile srcfile="${src.file}"
property="src.file.head">
<filterchain>
<tailfilter lines="10" skip="2"/>
</filterchain>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]