diff options
Diffstat (limited to 'src/internal/WixInternal.BaseBuildTasks.Sources')
| -rw-r--r-- | src/internal/WixInternal.BaseBuildTasks.Sources/WixCommandLineBuilder.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/internal/WixInternal.BaseBuildTasks.Sources/WixCommandLineBuilder.cs b/src/internal/WixInternal.BaseBuildTasks.Sources/WixCommandLineBuilder.cs index 61d7095d..985ef855 100644 --- a/src/internal/WixInternal.BaseBuildTasks.Sources/WixCommandLineBuilder.cs +++ b/src/internal/WixInternal.BaseBuildTasks.Sources/WixCommandLineBuilder.cs | |||
| @@ -120,5 +120,18 @@ namespace WixToolset.BaseBuildTasks | |||
| 120 | this.AppendTextUnquoted(textToAppend); | 120 | this.AppendTextUnquoted(textToAppend); |
| 121 | } | 121 | } |
| 122 | } | 122 | } |
| 123 | |||
| 124 | /// <summary> | ||
| 125 | /// Append arbitrary text to the command-line if specified quoted if needed. | ||
| 126 | /// </summary> | ||
| 127 | /// <param name="textToAppend">Text to append.</param> | ||
| 128 | public void AppendTextQuotedIfNotWhitespace(string textToAppend) | ||
| 129 | { | ||
| 130 | if (!String.IsNullOrWhiteSpace(textToAppend)) | ||
| 131 | { | ||
| 132 | this.AppendSpaceIfNotEmpty(); | ||
| 133 | this.AppendTextWithQuoting(textToAppend); | ||
| 134 | } | ||
| 135 | } | ||
| 123 | } | 136 | } |
| 124 | } | 137 | } |
