Name

depend

Synopsis

Determines which class files are out of date based on analysis of content, in addition to comparing class file timestamps to source file timestamps. It then removes class files that are out of date, either because source files are newer or because some logical dependency has changed. For instance, changing source code for a base class causes all derived classes to be removed, because they have a logical dependency on their base class.

Attributes

cache (1.3, 1.4, File, N)

A directory in which this task caches dependency information. If omitted, a cache is not used.

classpath (1.4, Path, N)

Specifies where additional (with respect to destdir) classes and JAR files are located. This task checks dependencies against classes specified by this attribute. You should not include third-party libraries and JDK libraries in this path, because they rarely change and will slow down dependency analysis. This is useful if you wish to check dependencies against a utility JAR file, for example.

classpathref (1.4, Reference, N)

A reference to a classpath defined elsewhere in the buildfile.

closure (1.3, 1.4, boolean, N)

If true, the task deletes only class files that directly depend on out-of-date classes. Otherwise, indirect dependencies are considered as well. Defaults to false.

defaultexcludes (1.3, 1.4, boolean, N)

Determines whether to use default excludes. Defaults to true.

destdir (1.3, 1.4, Path, N)

Directory in which class files are found. If omitted, defaults to the value specified ...

Get Ant: The Definitive Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.