Class Depend
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.MatchingTask
org.apache.tools.ant.taskdefs.optional.depend.Depend
- All Implemented Interfaces:
- Cloneable,- SelectorContainer
Generates a dependency file for a given set of classes.
- 
Field SummaryFields inherited from class org.apache.tools.ant.taskdefs.MatchingTaskfilesetFields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionAdds a classpath to be used for this dependency check.voidexecute()Does the work.Gets the classpath to be used for this dependency check.protected voidScans the directory looking for source files that are newer than their class files.voidSets the dependency cache file.voidsetClasspath(Path classpath) Set the classpath to be used for this dependency check.voidAdds a reference to a classpath defined elsewhere.voidsetClosure(boolean closure) If true, transitive dependencies are followed until the closure of the dependency set if reached.voidsetDestDir(Path destPath) Set the destination directory where the compiled Java files exist.voidsetDump(boolean dump) If true, the dependency information will be written to the debug level log.voidSet the directories path to find the Java source files.voidsetWarnOnRmiStubs(boolean warnOnRmiStubs) Flag to set to true if you want dependency issues with RMI stubs to appear at warning level.Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTaskadd, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItemsMethods inherited from class org.apache.tools.ant.TaskbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponentclone, getDescription, getLocation, getProject, setDescription, setLocation
- 
Constructor Details- 
Dependpublic Depend()
 
- 
- 
Method Details- 
setClasspathSet the classpath to be used for this dependency check.- Parameters:
- classpath- the classpath to be used when checking for dependencies on elements in the classpath
 
- 
getClasspathGets the classpath to be used for this dependency check.- Returns:
- the current dependency classpath
 
- 
createClasspathAdds a classpath to be used for this dependency check.- Returns:
- A path object to be configured by Ant
 
- 
setClasspathRefAdds a reference to a classpath defined elsewhere.- Parameters:
- r- a reference to a path object to be used as the depend classpath
 
- 
setWarnOnRmiStubspublic void setWarnOnRmiStubs(boolean warnOnRmiStubs) Flag to set to true if you want dependency issues with RMI stubs to appear at warning level.- Parameters:
- warnOnRmiStubs- if true set dependency issues to appear at warning level.
- Since:
- Ant1.7
 
- 
executeDoes the work.- Overrides:
- executein class- Task
- Throws:
- BuildException- Thrown in case of an unrecoverable error.
 
- 
scanDirScans the directory looking for source files that are newer than their class files. The results are returned in the class variable compileList- Parameters:
- srcDir- the source directory
- files- the names of the files in the source dir which are to be checked.
 
- 
setSrcdirSet the directories path to find the Java source files.- Parameters:
- srcPath- the source path
 
- 
setDestDirSet the destination directory where the compiled Java files exist.- Parameters:
- destPath- the destination areas where build files are written
 
- 
setCacheSets the dependency cache file.- Parameters:
- cache- the dependency cache file
 
- 
setClosurepublic void setClosure(boolean closure) If true, transitive dependencies are followed until the closure of the dependency set if reached. When not set, the depend task will only follow direct dependencies between classes.- Parameters:
- closure- indicate if dependency closure is required.
 
- 
setDumppublic void setDump(boolean dump) If true, the dependency information will be written to the debug level log.- Parameters:
- dump- set to true to dump dependency information to the log
 
 
-