From 57a0bc22528e7c515e208b9b68d064aad2a5e722 Mon Sep 17 00:00:00 2001
From: Gintas Grigelionis
The depend
task supports an attribute, closure which controls
+
The depend
task supports an attribute, closure, which controls
whether depend
will only consider direct class-class relationships or whether it will
also consider transitive, indirect relationships. For example, say there are three classes, A, which
-depends on B, which in-turn depend on C. Now say that class C is out of
+depends on B, which in-turn depends on C. Now say that class C is out of
date. Without closure, only class B would be removed
by depend
. With closure set, class A would also be removed. Normally direct
relationships are sufficient—it is unusual for a class to depend on another without having a
@@ -71,7 +71,7 @@ present, depend
will check class dependencies against classes and j
classpath. Any classes which depend on an element from this classpath and which are older than that
element will be deleted. A typical example where you would use this facility would be where you are
building a utility jar and want to make sure classes which are out of date with respect to this jar
-are rebuilt. You should not include jars in this classpath which you do not expect
+are rebuilt. In this classpath, you should not include jars that you do not expect
to change, such as the JDK runtime jar or third party jars, since doing so will just slow down the
dependency check. This means that if you do use a classpath for the depend
task it may
be different from the classpath necessary to actually compile your code.
There are some source dependencies which depend
will not detect.
There are some source dependencies which depend
will not detect:
depend
nor the compiler tasks can detect when a non public
+classfile. Secondly, neither depend
nor the compiler tasks can detect when a non-public
class is missing. Inner classes are handled by the depend
task.