net.sf.antcontrib.cpptasks

Class DependencyTable

public final class DependencyTable extends Object

Author: Curt Arnold

Nested Class Summary
abstract classDependencyTable.DependencyVisitor
classDependencyTable.TimestampChecker
Constructor Summary
DependencyTable(File baseDir)
Creates a target history table from dependencies.xml in the prject directory, if it exists.
Method Summary
voidcommit(CCTask task)
Enumerationelements()
Returns an enumerator of DependencyInfo's
DependencyInfogetDependencyInfo(String sourceRelativeName, String includePathIdentifier)
This method returns a DependencyInfo for the specific source file and include path identifier
voidload()
booleanneedsRebuild(CCTask task, TargetInfo target, int dependencyDepth)
Determines if the specified target needs to be rebuilt.
DependencyInfoparseIncludes(CCTask task, CompilerConfiguration compiler, File source)
voidwalkDependencies(CCTask task, DependencyInfo dependInfo, CompilerConfiguration compiler, DependencyInfo[] stack, DependencyTable.DependencyVisitor visitor)

Constructor Detail

DependencyTable

public DependencyTable(File baseDir)
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 Detail

commit

public void commit(CCTask task)

elements

public Enumeration elements()
Returns an enumerator of DependencyInfo's

getDependencyInfo

public DependencyInfo getDependencyInfo(String sourceRelativeName, String includePathIdentifier)
This method returns a DependencyInfo for the specific source file and include path identifier

load

public void load()

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, File source)

walkDependencies

public void walkDependencies(CCTask task, DependencyInfo dependInfo, CompilerConfiguration compiler, DependencyInfo[] stack, DependencyTable.DependencyVisitor visitor)
Copyright ? 2001-2011 Ant-Contrib project. All Rights Reserved.