Class PackageFiles
List of files which should be added in package and unpacked
Inheritance
object
PackageFiles
Namespace: BuildSystem.Package
Assembly: BuildSystem.ManagerObject.Interfaces.dll
Syntax
public class PackageFiles : Object
Constructors
PackageFiles(string?, Dictionary<string, string>)
List of files which should be added in package and unpacked
Declaration
public PackageFiles(string? condition, Dictionary<string, string> rules)
Parameters
Type | Name | Description |
---|---|---|
string | condition | |
System.Collections.Generic.Dictionary<,><string, string> | rules |
Properties
Condition
Condition - when unpack files
Declaration
public string? Condition { get; }
Property Value
Type | Description |
---|---|
string |
Rules
List of rules, describing which files to copy and target paths
Declaration
public Dictionary<string, string> Rules { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<,><string, string> |
Methods
GetAllRoutes(ILogger?, string, Dictionary<string, string>)
Return all files which fit the Rules and rules - target place to copy
Declaration
public Dictionary<string, string> GetAllRoutes(ILogger? logger, string relativePath, Dictionary<string, string> replaceRules)
Parameters
Type | Name | Description |
---|---|---|
ILogger | logger | Logging object for warnings |
string | relativePath | path to be added if source path is relative |
System.Collections.Generic.Dictionary<,><string, string> | replaceRules | Rules to replace in paths |
Returns
Type | Description |
---|---|
System.Collections.Generic.Dictionary<,><string, string> |
GetCondition(Dictionary<string, string>)
Condition - when unpack files. All expressions were replaced by replaceRules
Declaration
public string? GetCondition(Dictionary<string, string> replaceRules)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.Dictionary<,><string, string> | replaceRules |
Returns
Type | Description |
---|---|
string |