private int PostProcess() { logger.IncludeTimestamp = true; if (!Directory.Exists(bootstrapSettings.TempDirectory)) { logger.LogError(Resources.ERROR_TempDirDoesNotExist); return(ErrorCode); } Directory.SetCurrentDirectory(bootstrapSettings.TempDirectory); ITeamBuildSettings teamBuildSettings = TeamBuildSettings.GetSettingsFromEnvironment(logger); var config = GetAnalysisConfig(teamBuildSettings.AnalysisConfigFilePath); bool succeeded; if (config == null) { succeeded = false; } else { var postProcessor = processorFactory.CreatePostProcessor(); succeeded = postProcessor.Execute(bootstrapSettings.ChildCmdLineArgs.ToArray(), config, teamBuildSettings); } return(succeeded ? SuccessCode : ErrorCode); }
private int PostProcess() { Utilities.LogAssemblyVersion(Logger, typeof(Program).Assembly, Resources.AssemblyDescription); Logger.IncludeTimestamp = true; if (!Directory.Exists(BootstrapSettings.TempDirectory)) { Logger.LogError(Resources.ERROR_TempDirDoesNotExist); return(ErrorCode); } Directory.SetCurrentDirectory(BootstrapSettings.TempDirectory); ITeamBuildSettings teamBuildSettings = TeamBuildSettings.GetSettingsFromEnvironment(Logger); AnalysisConfig config = GetAnalysisConfig(teamBuildSettings.AnalysisConfigFilePath); bool succeeded; if (config == null) { succeeded = false; } else { IMSBuildPostProcessor postProcessor = ProcessorFactory.CreatePostProcessor(); succeeded = postProcessor.Execute(BootstrapSettings.ChildCmdLineArgs.ToArray(), config, teamBuildSettings); } return(succeeded ? SuccessCode : ErrorCode); }