Пример #1
0
        private string GetLoggerArgs(IIntegrationResult result)
        {
            ProcessArgumentBuilder builder = new ProcessArgumentBuilder();

            builder.Append("/l:");
            if (string.IsNullOrEmpty(Logger))
            {
                // Since hot-swapping shadow copies the files, we also need to move the logger over
                var loggerPath = shadowCopier.RetrieveFilePath("ThoughtWorks.CruiseControl.MsBuild.dll");
                if (!string.IsNullOrEmpty(loggerPath))
                {
                    builder.Append(StringUtil.AutoDoubleQuoteString(loggerPath) + ";");
                }
            }
            else
            {
                builder.Append(CheckAndQuoteLoggerSetting(Logger) + ";");
            }

            builder.Append(StringUtil.AutoDoubleQuoteString(MsBuildOutputFile(result)));

            foreach (string parameter in LoggerParameters)
            {
                builder.Append(";" + parameter);
            }

            return(builder.ToString());
        }
Пример #2
0
        public string RetrieveFilePath(string fileName)
        {
            string localFilePath = localShadowCopier.RetrieveFilePath(fileName);

            return(RemoteContext.GetRemoteContext().Controller.ShadowCopy(localFilePath));
        }