Ejemplo n.º 1
0
 internal void Load(string baseDir)
 {
     Dependency   = IncrementalUtility.LoadDependency(Path.Combine(baseDir, DependencyFile));
     Attributes   = IncrementalUtility.LoadIntermediateFile <IDictionary <string, FileAttributeItem> >(Path.Combine(baseDir, AttributesFile));
     BuildOutputs = IncrementalUtility.LoadIntermediateFile <BuildOutputs>(Path.Combine(baseDir, OutputFile));
     Manifest     = IncrementalUtility.LoadIntermediateFile <IEnumerable <ManifestItem> >(Path.Combine(baseDir, ManifestFile));
     XRefSpecMap  = IncrementalUtility.LoadIntermediateFile <IDictionary <string, IEnumerable <XRefSpec> > >(Path.Combine(baseDir, XRefSpecMapFile));
     FileMap      = IncrementalUtility.LoadIntermediateFile <IDictionary <string, string> >(Path.Combine(baseDir, FileMapFile));
     BuildMessage = IncrementalUtility.LoadBuildMessage(Path.Combine(baseDir, BuildMessageFile));
     foreach (var processor in Processors)
     {
         processor.Load(baseDir);
     }
 }
Ejemplo n.º 2
0
 internal void Load(string baseDir)
 {
     ActionWhenNotNull(baseDir, DependencyFile, f => { Dependency = IncrementalUtility.LoadDependency(f); });
     ActionWhenNotNull(baseDir, AttributesFile, f => { Attributes = IncrementalUtility.LoadIntermediateFile <OSPlatformSensitiveDictionary <FileAttributeItem> >(f); });
     ActionWhenNotNull(baseDir, OutputFile, f => { BuildOutputs = IncrementalUtility.LoadIntermediateFile <BuildOutputs>(f); });
     ActionWhenNotNull(baseDir, ManifestFile, f => { Manifest = IncrementalUtility.LoadIntermediateFile <IEnumerable <ManifestItem> >(f); });
     ActionWhenNotNull(baseDir, XRefSpecMapFile, f => { XRefSpecMap = IncrementalUtility.LoadIntermediateFile <OSPlatformSensitiveDictionary <List <XRefSpec> > >(f); });
     ActionWhenNotNull(baseDir, FileMapFile, f => { FileMap = IncrementalUtility.LoadIntermediateFile <OSPlatformSensitiveDictionary <FileMapItem> >(f); });
     ActionWhenNotNull(baseDir, BuildMessageFile, f => { BuildMessage = IncrementalUtility.LoadBuildMessage(f); });
     ActionWhenNotNull(baseDir, TocRestructionsFile, f => { TocRestructions = IncrementalUtility.LoadIntermediateFile <OSPlatformSensitiveDictionary <List <TreeItemRestructure> > >(f); });
     foreach (var processor in Processors)
     {
         processor.Load(baseDir);
     }
 }