diff options
Diffstat (limited to 'src/tools/WixToolset.HeatTasks/HeatDirectory.cs')
-rw-r--r-- | src/tools/WixToolset.HeatTasks/HeatDirectory.cs | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/src/tools/WixToolset.HeatTasks/HeatDirectory.cs b/src/tools/WixToolset.HeatTasks/HeatDirectory.cs deleted file mode 100644 index 14a8acfa..00000000 --- a/src/tools/WixToolset.HeatTasks/HeatDirectory.cs +++ /dev/null | |||
@@ -1,48 +0,0 @@ | |||
1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
2 | |||
3 | namespace WixToolset.HeatTasks | ||
4 | { | ||
5 | using Microsoft.Build.Framework; | ||
6 | using WixToolset.BaseBuildTasks; | ||
7 | |||
8 | public sealed class HeatDirectory : HeatTask | ||
9 | { | ||
10 | public string ComponentGroupName { get; set; } | ||
11 | |||
12 | [Required] | ||
13 | public string Directory { get; set; } | ||
14 | |||
15 | public string DirectoryRefId { get; set; } | ||
16 | |||
17 | public bool KeepEmptyDirectories { get; set; } | ||
18 | |||
19 | public string PreprocessorVariable { get; set; } | ||
20 | |||
21 | public bool SuppressCom { get; set; } | ||
22 | |||
23 | public bool SuppressRootDirectory { get; set; } | ||
24 | |||
25 | public bool SuppressRegistry { get; set; } | ||
26 | |||
27 | public string Template { get; set; } | ||
28 | |||
29 | protected override string OperationName => "dir"; | ||
30 | |||
31 | protected override void BuildCommandLine(WixCommandLineBuilder commandLineBuilder) | ||
32 | { | ||
33 | commandLineBuilder.AppendSwitch(this.OperationName); | ||
34 | commandLineBuilder.AppendFileNameIfNotNull(this.Directory); | ||
35 | |||
36 | commandLineBuilder.AppendSwitchIfNotNull("-cg ", this.ComponentGroupName); | ||
37 | commandLineBuilder.AppendSwitchIfNotNull("-dr ", this.DirectoryRefId); | ||
38 | commandLineBuilder.AppendIfTrue("-ke", this.KeepEmptyDirectories); | ||
39 | commandLineBuilder.AppendIfTrue("-scom", this.SuppressCom); | ||
40 | commandLineBuilder.AppendIfTrue("-sreg", this.SuppressRegistry); | ||
41 | commandLineBuilder.AppendIfTrue("-srd", this.SuppressRootDirectory); | ||
42 | commandLineBuilder.AppendSwitchIfNotNull("-template ", this.Template); | ||
43 | commandLineBuilder.AppendSwitchIfNotNull("-var ", this.PreprocessorVariable); | ||
44 | |||
45 | base.BuildCommandLine(commandLineBuilder); | ||
46 | } | ||
47 | } | ||
48 | } | ||