Exemplo n.º 1
0
        public static int ProcessMerge(CommandLineArgs args)
        {
            try
            {
                IEnumerable<string> inputPaths = GetInputFiles(args);
                string outputPath = "CustomInstrumentation.xml";

                if (!string.IsNullOrWhiteSpace(args.OutputFile))
                {
                    outputPath = args.OutputFile;
                }

                var merger = new CustomInstrumentationMerger(inputPaths, outputPath);
                merger.ContinueOnFailure = args.ContinueOnFailure;

                bool result = merger.Execute();

                return result ? 0 : -1;
            }
            catch (Exception ex)
            {
                ErrorOut("Failed to process instrumentation: {0}", ex, args.Verbose || args.VeryVerbose);
                return -1;
            }
        }
        public override bool Execute()
        {
            LogConfigurator.Configure(true, true, new BuildTaskLogAppender(this.Log));

            var inputFiles = PathHelper.GetMatchingPaths(this.InputFiles);

            var merger = new CustomInstrumentationMerger(inputFiles, this.OutputFile.ItemSpec);
            merger.ContinueOnFailure = true;

            return merger.Execute();
        }
Exemplo n.º 3
0
        public override bool Execute()
        {
            LogConfigurator.Configure(true, true, new BuildTaskLogAppender(this.Log));

            var inputFiles = PathHelper.GetMatchingPaths(this.InputFiles);

            var merger = new CustomInstrumentationMerger(inputFiles, this.OutputFile.ItemSpec);

            merger.ContinueOnFailure = true;

            return(merger.Execute());
        }