Author: jhm
Date: Sun Nov 27 03:22:42 2005
New Revision: 349207
URL: http://svn.apache.org/viewcvs?rev=349207&view=rev
Log:
Example for STDIN/STDOUT redirection and supressing the passing of the filename.
Needs update when DD patches <apply> ;-)
Modified:
ant/core/trunk/docs/manual/CoreTasks/apply.html
Modified: ant/core/trunk/docs/manual/CoreTasks/apply.html
URL:
http://svn.apache.org/viewcvs/ant/core/trunk/docs/manual/CoreTasks/apply.html?rev=349207&r1=349206&r2=349207&view=diff
==============================================================================
--- ant/core/trunk/docs/manual/CoreTasks/apply.html (original)
+++ ant/core/trunk/docs/manual/CoreTasks/apply.html Sun Nov 27 03:22:42 2005
@@ -141,7 +141,7 @@
</tr>
<tr>
<td valign="top">errorproperty</td>
- <td valign="top">The name of a property in which the standard error of the
+ <td valign="top">The name of a property in which the standard error of the
command should be stored. <em>since Ant 1.6</em></td>
<td align="center" valign="top">No</td>
</tr>
@@ -239,7 +239,7 @@
commands in the user's path, set this to false.
<em>since Ant 1.6</em></td>
<td align="center" valign="top">No, default is <i>false</i></td>
- </tr>
+ </tr>
<tr>
<td valign="top">maxparallel</td>
<td valign="top">Limit the amount of parallelism by passing at
@@ -290,7 +290,7 @@
<h4>Any other <a href="../CoreTypes/resources.html#collection">Resource
Collection</a></h4>
-<p><em>since Ant 1.7</em></p>
+<p><em>since Ant 1.7</em></p>
<p>You can use any number of nested resource collections.</p>
<h4>mapper</h4>
@@ -407,8 +407,29 @@
Applies the "ls" executable to all directories in the PATH, effectively
listing all executables that are available on the PATH.
+<blockquote><pre>
+<apply executable="jsmin" addsourcefile="false">
+ <!-- Collect the JS-files -->
+ <fileset dir="src" includes="*.js"/>
+ <redirector>
+ <!-- redirect STDIN; fileset collects relative to its dir, but we
need -->
+ <!-- relative to basedir -->
+ <inputmapper type="glob" from="*" to="src/*"/>
+ <!-- redirect STDOUT to file in dest-dir -->
+ <outputmapper id="out" type="glob" from="*.js" to="dest/*.js"/>
+ </redirector>
+</apply>
+</pre></blockquote>
+Conversion of the command <code>jsmin < src/a.js > dest/a.js</code> but
for
+all files in the src-directory. Because the filename itself should not be
passed
+to the <code>jsmin</code> program, the <code>addsourcefile</code> is set to
+<code>false</code>.
+
+
+
+
<hr><p align="center">Copyright © 2000-2005 The Apache Software
Foundation. All rights
Reserved.</p>
</body>
-</html>
+</html>
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]