blob: e21d61f5a265b9838aa588067eb117647252f107 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
// 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.
namespace WixToolset.BuildTasks
{
using Microsoft.Build.Framework;
#if false
public sealed class HeatFile : HeatTask
{
private string file;
private bool suppressCom;
private bool suppressRegistry;
private bool suppressRootDirectory;
private string template;
private string componentGroupName;
private string directoryRefId;
private string preprocessorVariable;
public string ComponentGroupName
{
get { return this.componentGroupName; }
set { this.componentGroupName = value; }
}
public string DirectoryRefId
{
get { return this.directoryRefId; }
set { this.directoryRefId = value; }
}
[Required]
public string File
{
get { return this.file; }
set { this.file = value; }
}
public string PreprocessorVariable
{
get { return this.preprocessorVariable; }
set { this.preprocessorVariable = value; }
}
public bool SuppressCom
{
get { return this.suppressCom; }
set { this.suppressCom = value; }
}
public bool SuppressRegistry
{
get { return this.suppressRegistry; }
set { this.suppressRegistry = value; }
}
public bool SuppressRootDirectory
{
get { return this.suppressRootDirectory; }
set { this.suppressRootDirectory = value; }
}
public string Template
{
get { return this.template; }
set { this.template = value; }
}
protected override string OperationName
{
get { return "file"; }
}
/// <summary>
/// Generate the command line arguments to write to the response file from the properties.
/// </summary>
/// <returns>Command line string.</returns>
protected override string GenerateResponseFileCommands()
{
WixCommandLineBuilder commandLineBuilder = new WixCommandLineBuilder();
commandLineBuilder.AppendSwitch(this.OperationName);
commandLineBuilder.AppendFileNameIfNotNull(this.File);
commandLineBuilder.AppendSwitchIfNotNull("-cg ", this.ComponentGroupName);
commandLineBuilder.AppendSwitchIfNotNull("-dr ", this.DirectoryRefId);
commandLineBuilder.AppendIfTrue("-scom", this.SuppressCom);
commandLineBuilder.AppendIfTrue("-srd", this.SuppressRootDirectory);
commandLineBuilder.AppendIfTrue("-sreg", this.SuppressRegistry);
commandLineBuilder.AppendSwitchIfNotNull("-template ", this.Template);
commandLineBuilder.AppendSwitchIfNotNull("-var ", this.PreprocessorVariable);
base.BuildCommandLine(commandLineBuilder);
return commandLineBuilder.ToString();
}
}
#endif
}
|