Class 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 name
      private 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.
    • 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 errors
        outputDir - 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

        private void update​(java.lang.String configId,
                            java.lang.String outputName,
                            java.lang.String[] sources)
      • update

        public void update​(TargetInfo linkTarget)