Package net.sf.antcontrib.cpptasks
Class DependencyTable
java.lang.Object
net.sf.antcontrib.cpptasks.DependencyTable
- Author:
- Curt Arnold
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
class
-
Constructor Summary
ConstructorsConstructorDescriptionDependencyTable
(File baseDir) Creates a target history table from dependencies.xml in the prject directory, if it exists. -
Method Summary
Modifier and TypeMethodDescriptionvoid
elements()
Returns an enumerator of DependencyInfo'sgetDependencyInfo
(String sourceRelativeName, String includePathIdentifier) This method returns a DependencyInfo for the specific source file and include path identifiervoid
load()
boolean
needsRebuild
(CCTask task, TargetInfo target, int dependencyDepth) Determines if the specified target needs to be rebuilt.parseIncludes
(CCTask task, CompilerConfiguration compiler, File source) void
walkDependencies
(CCTask task, DependencyInfo dependInfo, CompilerConfiguration compiler, DependencyInfo[] stack, DependencyTable.DependencyVisitor visitor)
-
Constructor Details
-
DependencyTable
Creates a target history table from dependencies.xml in the prject directory, if it exists. Otherwise, initializes the dependencies empty.- Parameters:
baseDir
- output directory for task
-
-
Method Details
-
commit
-
elements
Returns an enumerator of DependencyInfo's -
getDependencyInfo
This method returns a DependencyInfo for the specific source file and include path identifier -
load
-
needsRebuild
Determines if the specified target needs to be rebuilt. This task may result in substantial IO as files are parsed to determine their dependencies -
parseIncludes
-
walkDependencies
public void walkDependencies(CCTask task, DependencyInfo dependInfo, CompilerConfiguration compiler, DependencyInfo[] stack, DependencyTable.DependencyVisitor visitor) throws org.apache.tools.ant.BuildException - Throws:
org.apache.tools.ant.BuildException
-