Beispiel #1
0
        private void SetDirectoryProperty(string name,
                                          string displayName,
                                          string description,
                                          string switchValue,
                                          string value)
        {
            base.ActiveToolSwitches.Remove(name);
            ToolSwitch toolSwitch = new ToolSwitch(ToolSwitchType.Directory);

            toolSwitch.DisplayName          = displayName;
            toolSwitch.Description          = description;
            toolSwitch.ArgumentRelationList = new ArrayList();
            toolSwitch.SwitchValue          = switchValue;
            toolSwitch.Name  = name;
            toolSwitch.Value = VCToolTask.EnsureTrailingSlash(value);
            base.ActiveToolSwitches.Add(name, toolSwitch);
            base.AddActiveSwitchToolValue(toolSwitch);
        }
Beispiel #2
0
		protected override string GenerateResponseFileCommands(VCToolTask.CommandLineFormat format)
		{
			return string.Empty;
		}
Beispiel #3
0
        protected override string GenerateCommandLineCommands(VCToolTask.CommandLineFormat format
#if TOOLS_V14
                                                              , VCToolTask.EscapeFormat escapeFormat
#endif
        ) {
            string str = base.GenerateResponseFileCommands(format
#if TOOLS_V14
                , escapeFormat
#endif
                );
            if (!this.TrackFileAccess)
                str = str.Replace("\\\"", "\"").Replace("\\\\\"", "\\\"");
            str += " " + CommandLine;

            string src = "";
            foreach (var item in Sources)
                src += " " + item.ToString();
            if (!String.IsNullOrEmpty(src))
            {
                if (format == VCToolTask.CommandLineFormat.ForTracking)
                    str += " " + src.ToUpper();
                else
                    str += " " + src;
            }
            return str;
        }