private int PreProcess() { logger.LogInfo(Resources.MSG_PreparingDirectories); if (!Utilities.TryEnsureEmptyDirectories(logger, bootstrapSettings.TempDirectory)) { return(ErrorCode); } CopyDLLs(); logger.IncludeTimestamp = true; var preProcessor = processorFactory.CreatePreProcessor(); Directory.SetCurrentDirectory(bootstrapSettings.TempDirectory); var success = preProcessor.Execute(bootstrapSettings.ChildCmdLineArgs.ToArray()); return(success ? SuccessCode : ErrorCode); }
private int PreProcess() { Logger.LogInfo(Resources.MSG_PreparingDirectories); if (!Utilities.TryEnsureEmptyDirectories(Logger, BootstrapSettings.TempDirectory)) { return(ErrorCode); } CopyDLLs(); string server = BootstrapSettings.SonarQubeUrl; Debug.Assert(!string.IsNullOrWhiteSpace(server), "Not expecting the server URL to be null/empty"); Logger.LogDebug(Resources.MSG_ServerUrl, server); Utilities.LogAssemblyVersion(Logger, typeof(Program).Assembly, Resources.AssemblyDescription); Logger.IncludeTimestamp = true; ITeamBuildPreProcessor preProcessor = ProcessorFactory.CreatePreProcessor(); Directory.SetCurrentDirectory(BootstrapSettings.TempDirectory); bool success = preProcessor.Execute(BootstrapSettings.ChildCmdLineArgs.ToArray()); return(success ? SuccessCode : ErrorCode); }