Пример #1
0
 public void IncrementalInitialize(string intermediateFolder, BuildInfo currentBuildInfo, BuildInfo lastBuildInfo, bool forcePostProcess, int maxParallelism)
 {
     if (intermediateFolder != null)
     {
         var increPostProcessorsContext = new IncrementalPostProcessorsContext(intermediateFolder, currentBuildInfo, lastBuildInfo, _postProcessors, !forcePostProcess, maxParallelism);
         _postProcessorsHandler = new PostProcessorsHandlerWithIncremental(_postProcessorsHandler, increPostProcessorsContext);
     }
 }
Пример #2
0
 public PostProcessorsHandlerWithIncremental(IPostProcessorsHandler innerPostProcessorsHandler, IncrementalPostProcessorsContext increContext)
 {
     if (innerPostProcessorsHandler == null)
     {
         throw new ArgumentNullException(nameof(innerPostProcessorsHandler));
     }
     if (increContext == null)
     {
         throw new ArgumentNullException(nameof(increContext));
     }
     _innerHandler = innerPostProcessorsHandler;
     _increContext = increContext;
 }
Пример #3
0
        public IncrementalPostProcessorHost(IncrementalPostProcessorsContext increContext, string postProcessorName, IImmutableList <SourceFileInfo> sourceFileInfos)
        {
            if (increContext == null)
            {
                throw new ArgumentNullException(nameof(increContext));
            }
            if (postProcessorName == null)
            {
                throw new ArgumentNullException(nameof(postProcessorName));
            }

            _increContext              = increContext;
            _postProcessorName         = postProcessorName;
            SourceFileInfos            = sourceFileInfos;
            ShouldTraceIncrementalInfo = _increContext.ShouldTraceIncrementalInfo;
            IsIncremental              = _increContext.IsIncremental;
        }
Пример #4
0
        public IncrementalPostProcessorHost(IncrementalPostProcessorsContext increContext, string postProcessorName, IImmutableList <SourceFileInfo> sourceFileInfos)
        {
            if (increContext == null)
            {
                throw new ArgumentNullException(nameof(increContext));
            }
            if (postProcessorName == null)
            {
                throw new ArgumentNullException(nameof(postProcessorName));
            }

            _increContext              = increContext;
            _postProcessorName         = postProcessorName;
            SourceFileInfos            = sourceFileInfos;
            ShouldTraceIncrementalInfo = _increContext.ShouldTraceIncrementalInfo;
            IsIncremental              = _increContext.IsIncremental;
            var b = FileAbstractLayerBuilder.Default;

            if (increContext.LastBaseDir != null)
            {
                b = b.ReadFromRealFileSystem(increContext.LastBaseDir);
            }
            _fal = b.WriteToRealFileSystem(increContext.CurrentBaseDir).Create();
        }