public final class TargetHistoryTable
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private class |
TargetHistoryTable.TargetHistoryTableHandler
This class handles populates the TargetHistory hashtable in response to
SAX parse events
|
Modifier and Type | Field and 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 name
|
private java.io.File |
historyFile
The file the cache was loaded from.
|
private java.io.File |
outputDir |
private java.lang.String |
outputDirPath |
Constructor and Description |
---|
TargetHistoryTable(CCTask task,
java.io.File outputDir)
Creates a target history table from history.xml in the output directory,
if it exists.
|
Modifier and Type | Method and Description |
---|---|
void |
commit() |
TargetHistory |
get(java.lang.String configId,
java.lang.String outputName) |
void |
markForRebuild(java.util.Hashtable targetInfos) |
void |
markForRebuild(TargetInfo targetInfo) |
void |
update(ProcessorConfiguration config,
java.lang.String[] sources,
VersionInfo versionInfo) |
private void |
update(java.lang.String configId,
java.lang.String outputName,
java.lang.String[] sources) |
void |
update(TargetInfo linkTarget) |
private boolean dirty
private final java.util.Hashtable history
private java.io.File historyFile
private java.io.File outputDir
private java.lang.String outputDirPath
public TargetHistoryTable(CCTask task, java.io.File outputDir) throws org.apache.tools.ant.BuildException
task
- task used for logging history load errorsoutputDir
- output directory for taskorg.apache.tools.ant.BuildException
public void commit() throws java.io.IOException
java.io.IOException
public TargetHistory get(java.lang.String configId, java.lang.String outputName)
public void markForRebuild(java.util.Hashtable targetInfos)
public void markForRebuild(TargetInfo targetInfo)
public void update(ProcessorConfiguration config, java.lang.String[] sources, VersionInfo versionInfo)
private void update(java.lang.String configId, java.lang.String outputName, java.lang.String[] sources)
public void update(TargetInfo linkTarget)