コード例 #1
0
        public bool Execute(string[] args)
        {
            ProcessedArgs processedArgs = ArgumentProcessor.TryProcessArgs(args, this.logger);

            if (processedArgs == null)
            {
                this.logger.LogError(Resources.ERROR_InvalidCommandLineArgs);
                return(false);
            }
            else
            {
                return(DoExecute(processedArgs));
            }
        }
コード例 #2
0
        public bool Execute(string[] args)
        {
            logger.SuspendOutput();
            var processedArgs = ArgumentProcessor.TryProcessArgs(args, logger);

            if (processedArgs == null)
            {
                logger.ResumeOutput();
                logger.LogError(Resources.ERROR_InvalidCommandLineArgs);
                return(false);
            }
            else
            {
                return(DoExecute(processedArgs));
            }
        }
コード例 #3
0
        public bool Execute(string[] args)
        {
            bool success;

            ProcessedArgs processedArgs = ArgumentProcessor.TryProcessArgs(args, this.logger);

            if (processedArgs == null)
            {
                success = false;
                this.logger.LogError(Resources.ERROR_InvalidCommandLineArgs);
            }
            else
            {
                success = DoExecute(processedArgs);
            }

            return(success);
        }
コード例 #4
0
        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);
        }
コード例 #5
0
        public bool Execute(string[] args, ILogger logger)
        {
            if (logger == null)
            {
                throw new ArgumentNullException("logger");
            }

            bool success;

            ProcessedArgs processedArgs = ArgumentProcessor.TryProcessArgs(args, logger);

            if (processedArgs == null)
            {
                success = false;
                logger.LogError(Resources.ERROR_InvalidCommandLineArgs);
            }
            else
            {
                success = DoExecute(processedArgs, logger);
            }

            return(success);
        }