Example #1
0
 private void OnSerializingMethod(StreamingContext context)
 {
     IncrementalUtility.SaveDependency(DependencyFile, Dependency);
     IncrementalUtility.SaveIntermediateFile(AttributesFile, Attributes);
     IncrementalUtility.SaveIntermediateFile(ManifestFile, Manifest);
     IncrementalUtility.SaveIntermediateFile(XRefSpecMapFile, XRefSpecMap);
 }
Example #2
0
 internal void Save(string baseDir)
 {
     if (IntermediateModelManifestFile == null)
     {
         IntermediateModelManifestFile = IncrementalUtility.CreateRandomFileName(baseDir);
     }
     IncrementalUtility.SaveIntermediateFile(Path.Combine(baseDir, IntermediateModelManifestFile), IntermediateModelManifest);
 }
Example #3
0
 public void SaveManifest(string baseDir)
 {
     if (ManifestItemsFile == null)
     {
         ManifestItemsFile = IncrementalUtility.CreateRandomFileName(baseDir);
     }
     IncrementalUtility.SaveIntermediateFile(Path.Combine(baseDir, ManifestItemsFile), ManifestItems);
 }
Example #4
0
 internal void Save(string baseDir)
 {
     IncrementalUtility.SaveDependency(Path.Combine(baseDir, DependencyFile), Dependency);
     IncrementalUtility.SaveIntermediateFile(Path.Combine(baseDir, AttributesFile), Attributes);
     //IncrementalUtility.SaveIntermediateFile(Path.Combine(baseDir, ManifestFile), Manifest);
     //IncrementalUtility.SaveIntermediateFile(Path.Combine(baseDir, XRefSpecMapFile), XRefSpecMap);
     IncrementalUtility.SaveIntermediateFile(Path.Combine(baseDir, BuildModelManifestFile), BuildModelManifest);
     IncrementalUtility.SaveIntermediateFile(Path.Combine(baseDir, PostBuildModelManifestFile), PostBuildModelManifest);
 }
Example #5
0
        public void SaveManifest(string baseDir)
        {
            var expanded = Path.GetFullPath(Environment.ExpandEnvironmentVariables(baseDir));

            if (ManifestItemsFile == null)
            {
                ManifestItemsFile = IncrementalUtility.CreateRandomFileName(expanded);
            }
            IncrementalUtility.SaveIntermediateFile(Path.Combine(expanded, ManifestItemsFile), ManifestItems);
        }
Example #6
0
 internal void Save(string baseDir)
 {
     IncrementalUtility.SaveDependency(Path.Combine(baseDir, DependencyFile), Dependency);
     IncrementalUtility.SaveIntermediateFile(Path.Combine(baseDir, AttributesFile), Attributes);
     BuildMessage.Save(Path.Combine(baseDir, BuildMessageFile));
     foreach (var processor in Processors)
     {
         processor.Save(baseDir);
     }
 }
Example #7
0
 internal void Save(string baseDir)
 {
     IncrementalUtility.SaveDependency(Path.Combine(baseDir, DependencyFile), Dependency);
     IncrementalUtility.SaveIntermediateFile(Path.Combine(baseDir, AttributesFile), Attributes);
     IncrementalUtility.SaveIntermediateFile(Path.Combine(baseDir, OutputFile), BuildOutputs);
     IncrementalUtility.SaveIntermediateFile(Path.Combine(baseDir, XRefSpecMapFile), XRefSpecMap);
     IncrementalUtility.SaveIntermediateFile(Path.Combine(baseDir, FileMapFile), FileMap);
     IncrementalUtility.SaveBuildMessage(Path.Combine(baseDir, BuildMessageFile), BuildMessage);
     foreach (var processor in Processors)
     {
         processor.Save(baseDir);
     }
 }
Example #8
0
 internal void Save(string baseDir)
 {
     if (PostProcessOutputsFile == null)
     {
         PostProcessOutputsFile = IncrementalUtility.CreateRandomFileName(baseDir);
     }
     if (MessageInfoFile == null)
     {
         MessageInfoFile = IncrementalUtility.CreateRandomFileName(baseDir);
     }
     IncrementalUtility.SaveIntermediateFile(Path.Combine(baseDir, PostProcessOutputsFile), PostProcessOutputs);
     using var sw = new StreamWriter(Path.Combine(baseDir, MessageInfoFile), false, UTF8);
     MessageInfo.Save(sw);
 }
Example #9
0
 internal void Save(string baseDir)
 {
     IncrementalUtility.SaveDependency(Path.Combine(baseDir, DependencyFile), Dependency);
     if (FileMetadataFile != null)
     {
         IncrementalUtility.SaveIntermediateFile(
             Path.Combine(baseDir, FileMetadataFile),
             FileMetadata,
             IncrementalUtility.FileMetadataJsonSerializationSettings);
     }
     IncrementalUtility.SaveIntermediateFile(Path.Combine(baseDir, AttributesFile), Attributes);
     IncrementalUtility.SaveIntermediateFile(Path.Combine(baseDir, OutputFile), BuildOutputs);
     IncrementalUtility.SaveIntermediateFile(Path.Combine(baseDir, XRefSpecMapFile), XRefSpecMap);
     IncrementalUtility.SaveIntermediateFile(Path.Combine(baseDir, FileMapFile), FileMap);
     IncrementalUtility.SaveBuildMessage(Path.Combine(baseDir, BuildMessageFile), BuildMessage);
     IncrementalUtility.SaveIntermediateFile(Path.Combine(baseDir, TocRestructionsFile), TocRestructions);
     foreach (var processor in Processors)
     {
         processor.Save(baseDir);
     }
 }
Example #10
0
 public void Save(string file)
 {
     IncrementalUtility.SaveIntermediateFile <IDictionary <string, List <LogItem> > >(file, _logs);
 }
Example #11
0
 public void SaveManifest()
 {
     IncrementalUtility.SaveIntermediateFile(Path.Combine(BaseDir, ManifestFile), Manifest);
 }
Example #12
0
        public void SaveManifest(string baseDir)
        {
            var expanded = Path.GetFullPath(Environment.ExpandEnvironmentVariables(baseDir));

            IncrementalUtility.SaveIntermediateFile(Path.Combine(expanded, ManifestFile), Manifest);
        }