Package net.sf.antcontrib.cpptasks
Class DependencyTable
- java.lang.Object
-
- net.sf.antcontrib.cpptasks.DependencyTable
-
public final class DependencyTable extends java.lang.Object- Author:
- Curt Arnold
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classDependencyTable.DependencyVisitorclassDependencyTable.TimestampChecker
-
Constructor Summary
Constructors Constructor Description DependencyTable(java.io.File baseDir)Creates a target history table from dependencies.xml in the prject directory, if it exists.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcommit(CCTask task)java.util.Enumerationelements()Returns an enumerator of DependencyInfo'sDependencyInfogetDependencyInfo(java.lang.String sourceRelativeName, java.lang.String includePathIdentifier)This method returns a DependencyInfo for the specific source file and include path identifiervoidload()booleanneedsRebuild(CCTask task, TargetInfo target, int dependencyDepth)Determines if the specified target needs to be rebuilt.DependencyInfoparseIncludes(CCTask task, CompilerConfiguration compiler, java.io.File source)voidwalkDependencies(CCTask task, DependencyInfo dependInfo, CompilerConfiguration compiler, DependencyInfo[] stack, DependencyTable.DependencyVisitor visitor)
-
-
-
Method Detail
-
commit
public void commit(CCTask task)
-
elements
public java.util.Enumeration elements()
Returns an enumerator of DependencyInfo's
-
getDependencyInfo
public DependencyInfo getDependencyInfo(java.lang.String sourceRelativeName, java.lang.String includePathIdentifier)
This method returns a DependencyInfo for the specific source file and include path identifier
-
load
public void load() throws java.io.IOException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException- Throws:
java.io.IOExceptionjavax.xml.parsers.ParserConfigurationExceptionorg.xml.sax.SAXException
-
needsRebuild
public boolean needsRebuild(CCTask task, TargetInfo target, int dependencyDepth)
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
public DependencyInfo parseIncludes(CCTask task, CompilerConfiguration compiler, java.io.File source)
-
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
-
-