private static int Main(string[] args) { ILogger logger = new ConsoleLogger(includeTimestamp: true); TeamBuildPreProcessor preProcessor = new TeamBuildPreProcessor(); bool success = preProcessor.Execute(args, logger); return(success ? SuccessCode : ErrorCode); }
private static int Main(string[] args) { ILogger logger = new ConsoleLogger(includeTimestamp: true); TeamBuildPreProcessor preProcessor = new TeamBuildPreProcessor(); bool success = preProcessor.Execute(args, logger); return success ? SuccessCode : ErrorCode; }
private static int Main(string[] args) { ILogger logger = new ConsoleLogger(); Utilities.LogAssemblyVersion(logger, typeof(Program).Assembly, Resources.AssemblyDescription); logger.IncludeTimestamp = true; TeamBuildPreProcessor preProcessor = new TeamBuildPreProcessor(logger); bool success = preProcessor.Execute(args); return success ? SuccessCode : ErrorCode; }
private static int Main(string[] args) { ILogger logger = new ConsoleLogger(); Utilities.LogAssemblyVersion(logger, typeof(Program).Assembly, Resources.AssemblyDescription); logger.IncludeTimestamp = true; TeamBuildPreProcessor preProcessor = new TeamBuildPreProcessor(); bool success = preProcessor.Execute(args, logger); return(success ? SuccessCode : ErrorCode); }
private static int Main(string[] args) { ILogger logger = new ConsoleLogger(includeTimestamp: false); Utilities.LogAssemblyVersion(logger, typeof(Program).Assembly, Resources.AssemblyDescription); logger.IncludeTimestamp = true; IPreprocessorObjectFactory factory = new PreprocessorObjectFactory(); var preProcessor = new TeamBuildPreProcessor(factory, logger); var success = preProcessor.Execute(args); return(success ? SuccessCode : ErrorCode); }
static int Main(string[] args) { ILogger logger = new ConsoleLogger(includeTimestamp: true); bool success; ProcessedArgs processedArgs = ArgumentProcessor.TryProcessArgs(args, logger); if (processedArgs == null) { success = false; logger.LogError(Resources.ERROR_InvalidCommandLineArgs); } else { Debug.Assert(File.Exists(processedArgs.RunnerPropertiesPath), "Expecting the properties file to exist: " + processedArgs.RunnerPropertiesPath); TeamBuildPreProcessor preProcessor = new TeamBuildPreProcessor(); success = preProcessor.Execute(logger, processedArgs.ProjectKey, processedArgs.ProjectName, processedArgs.ProjectVersion, processedArgs.RunnerPropertiesPath); } return(success ? 0 : ErrorCode); }