aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.BuildTasks/heatdirectory.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.BuildTasks/heatdirectory.cs')
-rw-r--r--src/WixToolset.BuildTasks/heatdirectory.cs103
1 files changed, 0 insertions, 103 deletions
diff --git a/src/WixToolset.BuildTasks/heatdirectory.cs b/src/WixToolset.BuildTasks/heatdirectory.cs
deleted file mode 100644
index 1d5f104a..00000000
--- a/src/WixToolset.BuildTasks/heatdirectory.cs
+++ /dev/null
@@ -1,103 +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
3namespace WixToolset.BuildTasks
4{
5 using Microsoft.Build.Framework;
6
7 public sealed class HeatDirectory : HeatTask
8 {
9 private string directory;
10 private bool keepEmptyDirectories;
11 private bool suppressCom;
12 private bool suppressRootDirectory;
13 private bool suppressRegistry;
14 private string template;
15 private string componentGroupName;
16 private string directoryRefId;
17 private string preprocessorVariable;
18
19 public string ComponentGroupName
20 {
21 get { return this.componentGroupName; }
22 set { this.componentGroupName = value; }
23 }
24
25 [Required]
26 public string Directory
27 {
28 get { return this.directory; }
29 set { this.directory = value; }
30 }
31
32 public string DirectoryRefId
33 {
34 get { return this.directoryRefId; }
35 set { this.directoryRefId = value; }
36 }
37
38 public bool KeepEmptyDirectories
39 {
40 get { return this.keepEmptyDirectories; }
41 set { this.keepEmptyDirectories = value; }
42 }
43
44 public string PreprocessorVariable
45 {
46 get { return this.preprocessorVariable; }
47 set { this.preprocessorVariable = value; }
48 }
49
50 public bool SuppressCom
51 {
52 get { return this.suppressCom; }
53 set { this.suppressCom = value; }
54 }
55
56 public bool SuppressRootDirectory
57 {
58 get { return this.suppressRootDirectory; }
59 set { this.suppressRootDirectory = value; }
60 }
61
62 public bool SuppressRegistry
63 {
64 get { return this.suppressRegistry; }
65 set { this.suppressRegistry = value; }
66 }
67
68 public string Template
69 {
70 get { return this.template; }
71 set { this.template = value; }
72 }
73
74 protected override string OperationName
75 {
76 get { return "dir"; }
77 }
78
79 /// <summary>
80 /// Generate the command line arguments to write to the response file from the properties.
81 /// </summary>
82 /// <returns>Command line string.</returns>
83 protected override string GenerateResponseFileCommands()
84 {
85 WixCommandLineBuilder commandLineBuilder = new WixCommandLineBuilder();
86
87 commandLineBuilder.AppendSwitch(this.OperationName);
88 commandLineBuilder.AppendFileNameIfNotNull(this.Directory);
89
90 commandLineBuilder.AppendSwitchIfNotNull("-cg ", this.ComponentGroupName);
91 commandLineBuilder.AppendSwitchIfNotNull("-dr ", this.DirectoryRefId);
92 commandLineBuilder.AppendIfTrue("-ke", this.KeepEmptyDirectories);
93 commandLineBuilder.AppendIfTrue("-scom", this.SuppressCom);
94 commandLineBuilder.AppendIfTrue("-sreg", this.SuppressRegistry);
95 commandLineBuilder.AppendIfTrue("-srd", this.SuppressRootDirectory);
96 commandLineBuilder.AppendSwitchIfNotNull("-template ", this.Template);
97 commandLineBuilder.AppendSwitchIfNotNull("-var ", this.PreprocessorVariable);
98
99 base.BuildCommandLine(commandLineBuilder);
100 return commandLineBuilder.ToString();
101 }
102 }
103}