Browse Source

fixed strange example, property names do not usually start with ${

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278391 13f79535-47bb-0310-9956-ffa450edef68
master
Antoine Levy-Lambert 20 years ago
parent
commit
b8c1383799
1 changed files with 9 additions and 9 deletions
  1. +9
    -9
      docs/manual/CoreTypes/filterchain.html

+ 9
- 9
docs/manual/CoreTypes/filterchain.html View File

@@ -63,7 +63,7 @@ can also be declared using a syntax similar to the above syntax.
However, they can be declared using some simpler syntax also.<p>
Example:
<blockquote><pre>
&lt;loadfile srcfile=&quot;${src.file}&quot; property=&quot;${src.file.head}&quot;&gt;
&lt;loadfile srcfile=&quot;${src.file}&quot; property=&quot;src.file.head&quot;&gt;
&lt;filterchain&gt;
&lt;headfilter lines=&quot;15&quot;/&gt;
&lt;/filterchain&gt;
@@ -71,7 +71,7 @@ Example:
</pre></blockquote>
is equivalent to:
<blockquote><pre>
&lt;loadfile srcfile=&quot;${src.file}&quot; property=&quot;${src.file.head}&quot;&gt;
&lt;loadfile srcfile=&quot;${src.file}&quot; property=&quot;src.file.head&quot;&gt;
&lt;filterchain&gt;
&lt;filterreader classname=&quot;org.apache.tools.ant.filters.HeadFilter&quot;&gt;
&lt;param name=&quot;lines&quot; value=&quot;15&quot;/&gt;
@@ -259,9 +259,9 @@ This filter reads the first few lines from the data supplied to it.
<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>
&lt;loadfile srcfile=&quot;${src.file}&quot; property=&quot;${src.file.head}&quot;&gt;
&lt;loadfile srcfile=&quot;${src.file}&quot; property=&quot;src.file.head&quot;&gt;
&lt;filterchain&gt;
&lt;filterreader classname=&quot;org.apache.tools.ant.filters.HeadFilter&quot;&gt;
&lt;param name=&quot;lines&quot; value=&quot;15&quot;/&gt;
@@ -272,7 +272,7 @@ This stores the first 15 lines of the supplied data in the property ${src.file.h

Convenience method:
<blockquote><pre>
&lt;loadfile srcfile=&quot;${src.file}&quot; property=&quot;${src.file.head}&quot;&gt;
&lt;loadfile srcfile=&quot;${src.file}&quot; property=&quot;src.file.head&quot;&gt;
&lt;filterchain&gt;
&lt;headfilter lines=&quot;15&quot;/&gt;
&lt;/filterchain&gt;
@@ -280,9 +280,9 @@ Convenience method:
</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>
&lt;loadfile srcfile=&quot;${src.file}&quot; property=&quot;${src.file.head}&quot;&gt;
&lt;loadfile srcfile=&quot;${src.file}&quot; property=&quot;src.file.head&quot;&gt;
&lt;filterchain&gt;
&lt;headfilter lines=&quot;15&quot; skip=&quot;2&quot;/&gt;
&lt;/filterchain&gt;
@@ -824,10 +824,10 @@ Convenience method:


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>
&lt;loadfile srcfile=&quot;${src.file}&quot; property=&quot;${src.file.head}&quot;&gt;
&lt;loadfile srcfile=&quot;${src.file}&quot; property=&quot;src.file.head&quot;&gt;
&lt;filterchain&gt;
&lt;tailfilter lines=&quot;10&quot; skip=&quot;2&quot;/&gt;
&lt;/filterchain&gt;


Loading…
Cancel
Save