Package net.sf.antcontrib.cpptasks
Class TargetHistoryTable
- java.lang.Object
-
- net.sf.antcontrib.cpptasks.TargetHistoryTable
-
public final class TargetHistoryTable extends java.lang.Object
A 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 class
TargetHistoryTable.TargetHistoryTableHandler
This class handles populates the TargetHistory hashtable in response to SAX parse events
-
Field Summary
Fields Modifier and Type Field Description private boolean
dirty
Flag indicating whether the cache should be written back to file.private java.util.Hashtable
history
a hashtable of TargetHistory's keyed by output file nameprivate java.io.File
historyFile
The file the cache was loaded from.private java.io.File
outputDir
private java.lang.String
outputDirPath
-
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 void
commit()
TargetHistory
get(java.lang.String configId, java.lang.String outputName)
void
markForRebuild(java.util.Hashtable targetInfos)
void
markForRebuild(TargetInfo targetInfo)
private void
update(java.lang.String configId, java.lang.String outputName, java.lang.String[] sources)
void
update(ProcessorConfiguration config, java.lang.String[] sources, VersionInfo versionInfo)
void
update(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)
-
-