public FastBuildRunnerException(string message,
                                 FastBuildStartInfo startInfo,
                                 AsyncProcessResult processResult)
     : base(message)
 {
     StartInfo             = startInfo;
     ProcessStandardOutput = processResult?.StandardOutput;
     ProcessStandardError  = processResult?.StandardError;
 }
示例#2
0
        private string GenerateCommandLineArguments(FastBuildStartInfo startInfo)
        {
            var builder = new StringBuilder();

            switch (startInfo.CacheMode)
            {
            case CacheModeEnum.Read:
                builder.Append("-cacheread ");
                break;

            case CacheModeEnum.Write:
                builder.Append("-cachewrite ");
                break;

            case CacheModeEnum.ReadWrite:
                builder.Append("-cache ");
                break;
            }

            if (startInfo.CacheInfo)
            {
                builder.Append("-cacheinfo ");
            }

            if (startInfo.CacheTrimSize != 0)
            {
                builder.AppendFormat("-cachetrim {0} ", startInfo.CacheTrimSize);
            }

            if (startInfo.VerboseCache)
            {
                builder.Append("-cacheverbose ");
            }

            if (startInfo.Clean)
            {
                builder.Append("-clean ");
            }

            if (startInfo.CompareDatabase)
            {
                builder.Append("-compdb ");
            }

            if (startInfo.DistributedCompiling)
            {
                builder.Append("-dist ");
            }

            if (startInfo.VerboseDistribution)
            {
                builder.Append("-distverbose ");
            }

            if (startInfo.ForceRemoteWorker)
            {
                builder.Append("-forceremote ");
            }

            if (startInfo.GenerateReport)
            {
                builder.Append("-report ");
            }

            if (startInfo.ShowCommands)
            {
                builder.Append("-showcmds ");
            }

            if (startInfo.ShowTargets)
            {
                builder.Append("-showtargets ");
            }

            if (startInfo.ShowAllTargets)
            {
                builder.Append("-showalltargets ");
            }

            if (startInfo.Summary)
            {
                builder.Append("-summary ");
            }

            if (startInfo.Verbose)
            {
                builder.Append("-verbose ");
            }

            return(builder.ToString());
        }
示例#3
0
 public FastBuildRunner(FastBuildStartInfo startInfo) : this(startInfo, null)
 {
 }
示例#4
0
 public FastBuildRunner(FastBuildStartInfo startInfo, Action <OutputType, string> outputCallbackAction)
 {
     m_startInfo            = startInfo;
     m_outputCallbackAction = outputCallbackAction;
 }
 public FastBuildRunnerException(string message, FastBuildStartInfo startInfo)
     : this(message, startInfo, null)
 {
 }