diff --git a/docs/manual/OptionalTasks/depend.html b/docs/manual/OptionalTasks/depend.html index ddcaa1957..6d48337c2 100644 --- a/docs/manual/OptionalTasks/depend.html +++ b/docs/manual/OptionalTasks/depend.html @@ -149,29 +149,46 @@ classes. Defaults to false -
depend's classpath attribute is a
-PATH like structure and can also be set
-via a nested classpath element.
The depend task's classpath attribute is a
+PATH-like structure and can also be set
+via a nested <classpath> element.
Additionally,
+this task forms an implicit
+FileSet
+and supports all attributes of
+<fileset> (dir becomes srcdir),
+as well as the nested <include>,
+<exclude>, and <patternset> elements.
<depend srcdir="${java.dir}"
destdir="${build.classes}"
cache="depcache"
closure="yes"/>
-
-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.
+removes any classes in the ${build.classes} directory
+that 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 example, the
+<depend> task caches its dependency
+information in the depcache directory.
+<depend srcdir="${java.dir}" destdir="${build.classes}"
+ cache="depcache" closure="yes">
+ <include name="**/*.java"/>
+ <excludesfile name="${java.dir}/build_excludes"/>
+</depend>
+
+does the same as the previous example, but explicitly includes all
+.java files, except those that match the list given
+in ${java.dir}/build_excludes.
Copyright © 2001-2002 Apache Software Foundation. -All rights -Reserved.
+All rights Reserved.