org.apache.tools.ant.taskdefs.optional.depend
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
- public class Depend
- extends MatchingTask
Generate a dependency file for a given set of classes
- Author:
- Conor MacNeill
Method Summary |
Path |
createClasspath()
Creates a nested classpath element. |
void |
execute()
Does the work. |
Path |
getClasspath()
Gets the classpath to be used for this dependency check. |
protected void |
scanDir(java.io.File srcDir,
java.lang.String[] files)
Scans the directory looking for source files that are newer than their class files. |
void |
setCache(java.io.File cache)
|
void |
setClasspath(Path classpath)
Set the classpath to be used for this dependency check. |
void |
setClasspathRef(Reference r)
Adds a reference to a CLASSPATH defined elsewhere. |
void |
setClosure(boolean closure)
|
void |
setDestDir(Path destPath)
Set the destination directory where the compiled java files exist. |
void |
setDump(boolean dump)
Flag to indicate whether the reverse dependency list should be dumped to debug |
void |
setSrcdir(Path srcPath)
Set the source dirs to find the source Java files. |
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, setDefaultexcludes, setExcludes, setExcludesfile, setIncludes, setIncludesfile, XsetIgnore, XsetItems |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, handleOutput, init, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Depend
public Depend()
setClasspath
public void setClasspath(Path classpath)
- Set the classpath to be used for this dependency check.
getClasspath
public Path getClasspath()
- Gets the classpath to be used for this dependency check.
createClasspath
public Path createClasspath()
- Creates a nested classpath element.
setClasspathRef
public void setClasspathRef(Reference r)
- Adds a reference to a CLASSPATH defined elsewhere.
execute
public void execute()
throws BuildException
- Does the work.
- Overrides:
execute
in class Task
- Throws:
BuildException
- Thrown in unrecovrable error.
scanDir
protected void scanDir(java.io.File srcDir,
java.lang.String[] files)
- Scans the directory looking for source files that are newer than their class files.
The results are returned in the class variable compileList
setSrcdir
public void setSrcdir(Path srcPath)
- Set the source dirs to find the source Java files.
setDestDir
public void setDestDir(Path destPath)
- Set the destination directory where the compiled java files exist.
setCache
public void setCache(java.io.File cache)
setClosure
public void setClosure(boolean closure)
setDump
public void setDump(boolean dump)
- Flag to indicate whether the reverse dependency list should be dumped to debug
Copyright © 1999-2001 Apache Software Foundation. All Rights Reserved.