Package net.sf.antcontrib.cpptasks
Class TargetHistoryTable
- java.lang.Object
-
- net.sf.antcontrib.cpptasks.TargetHistoryTable
-
public final class TargetHistoryTable extends java.lang.ObjectA history of the compiler and linker settings used to build the files in the same directory as the history.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classTargetHistoryTable.TargetHistoryTableHandlerThis class handles populates the TargetHistory hashtable in response to SAX parse events
-
Field Summary
Fields Modifier and Type Field Description private booleandirtyFlag indicating whether the cache should be written back to file.private java.util.Hashtablehistorya hashtable of TargetHistory's keyed by output file nameprivate java.io.FilehistoryFileThe file the cache was loaded from.private java.io.FileoutputDirprivate java.lang.StringoutputDirPath
-
Constructor Summary
Constructors Constructor Description TargetHistoryTable(CCTask task, java.io.File outputDir)Creates a target history table from history.xml in the output directory, if it exists.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcommit()TargetHistoryget(java.lang.String configId, java.lang.String outputName)voidmarkForRebuild(java.util.Hashtable targetInfos)voidmarkForRebuild(TargetInfo targetInfo)private voidupdate(java.lang.String configId, java.lang.String outputName, java.lang.String[] sources)voidupdate(ProcessorConfiguration config, java.lang.String[] sources, VersionInfo versionInfo)voidupdate(TargetInfo linkTarget)
-
-
-
Field Detail
-
dirty
private boolean dirty
Flag indicating whether the cache should be written back to file.
-
history
private final java.util.Hashtable history
a hashtable of TargetHistory's keyed by output file name
-
historyFile
private java.io.File historyFile
The file the cache was loaded from.
-
outputDir
private java.io.File outputDir
-
outputDirPath
private java.lang.String outputDirPath
-
-
Constructor Detail
-
TargetHistoryTable
public TargetHistoryTable(CCTask task, java.io.File outputDir) throws org.apache.tools.ant.BuildException
Creates a target history table from history.xml in the output directory, if it exists. Otherwise, initializes the history table empty.- Parameters:
task- task used for logging history load errorsoutputDir- output directory for task- Throws:
org.apache.tools.ant.BuildException
-
-
Method Detail
-
commit
public void commit() throws java.io.IOException- Throws:
java.io.IOException
-
get
public TargetHistory get(java.lang.String configId, java.lang.String outputName)
-
markForRebuild
public void markForRebuild(java.util.Hashtable targetInfos)
-
markForRebuild
public void markForRebuild(TargetInfo targetInfo)
-
update
public void update(ProcessorConfiguration config, java.lang.String[] sources, VersionInfo versionInfo)
-
update
private void update(java.lang.String configId, java.lang.String outputName, java.lang.String[] sources)
-
update
public void update(TargetInfo linkTarget)
-
-