holtdl 02/03/31 15:11:56
Modified: docs/manual/OptionalTasks depend.html
Log:
Added info wrt nested elements (PR 3189).
Revision Changes Path
1.9 +30 -13 jakarta-ant/docs/manual/OptionalTasks/depend.html
Index: depend.html
===================================================================
RCS file: /home/cvs/jakarta-ant/docs/manual/OptionalTasks/depend.html,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- depend.html 22 Feb 2002 09:20:33 -0000 1.8
+++ depend.html 31 Mar 2002 23:11:56 -0000 1.9
@@ -149,29 +149,46 @@
</tr>
</table>
-<h3>Nested Elements</h3>
-<p><code>depend</code>'s <i>classpath</i> attribute is a
-<a href="../using.html#path">PATH like structure</a> and can also be set
-via a nested <i>classpath</i> element.</p>
+<h3>Parameters specified as nested elements</h3>
+<p>The <code>depend</code> task's <code>classpath</code> attribute is a
+<a href="../using.html#path">PATH-like structure</a> and can also be set
+via a nested <code><classpath></code> element.</p>
+
+<p>Additionally,
+this task forms an implicit
+<a href="../CoreTypes/fileset.html">FileSet</a>
+and supports all attributes of
+<code><fileset></code> (<code>dir</code> becomes <code>srcdir</code>),
+as well as the nested <code><include></code>,
+<code><exclude></code>, and <code><patternset></code> elements.
<h3>Examples</h3>
-<blockquote>
<pre><depend srcdir="${java.dir}"
destdir="${build.classes}"
cache="depcache"
closure="yes"/></pre>
-</blockquote>
-<p> In this example classes in the ${build.classes} directory will be
removed if
-they depend on out-of-date classes. Classes are considered out of date with
-respect to the source in the ${java.dir} directory using the same mechanism
as
-the javac task. In this instance the depend task caches its dependency
-information in the depcache directory. </p>
+<p>removes any classes in the <code>${build.classes}</code> directory
+that depend on out-of-date classes. Classes are considered out-of-date with
+respect to the source in the <code>${java.dir}</code> directory, using the
same
+mechanism as the <code><javac></code> task. In this example, the
+<code><depend></code> task caches its dependency
+information in the <code>depcache</code> directory. </p>
+
+<pre>
+<depend srcdir="${java.dir}"
destdir="${build.classes}"
+ cache="depcache" closure="yes">
+ <include name="**/*.java"/>
+ <excludesfile name="${java.dir}/build_excludes"/>
+</depend>
+</pre>
+<p>does the same as the previous example, but explicitly includes all
+<code>.java</code> files, except those that match the list given
+in <code>${java.dir}/build_excludes</code>.</p>
<hr>
<p align="center">Copyright © 2001-2002 Apache Software Foundation.
-All rights
-Reserved.</p>
+All rights Reserved.</p>
</body>
</html>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>