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(); }
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()); }