Package net.sf.antcontrib.cpptasks
Class TargetHistoryTable
java.lang.Object
net.sf.antcontrib.cpptasks.TargetHistoryTable
A history of the compiler and linker settings used to build the files in the
same directory as the history.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate class
This class handles populates the TargetHistory hashtable in response to SAX parse events -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTargetHistoryTable
(CCTask task, File outputDir) Creates a target history table from history.xml in the output directory, if it exists. -
Method Summary
Modifier and TypeMethodDescriptionvoid
commit()
void
markForRebuild
(Hashtable targetInfos) void
markForRebuild
(TargetInfo targetInfo) private void
void
update
(ProcessorConfiguration config, String[] sources, VersionInfo versionInfo) void
update
(TargetInfo linkTarget)
-
Field Details
-
dirty
private boolean dirtyFlag indicating whether the cache should be written back to file. -
history
a hashtable of TargetHistory's keyed by output file name -
historyFile
The file the cache was loaded from. -
outputDir
-
outputDirPath
-
-
Constructor Details
-
TargetHistoryTable
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 Details
-
commit
- Throws:
IOException
-
get
-
markForRebuild
-
markForRebuild
-
update
-
update
-
update
-