Table of Contents

Class GenerateGitPropertiesCacheTask

Namespace
Steeltoe.Management.GitProperties.Build
Assembly
Steeltoe.Management.GitProperties.Build.dll

Computes the git.properties fields that are stable across the whole repository and writes them to a shared cache file, so concurrent and/or multi-targeted projects in the same solution build reuse it instead of each re-invoking git.

public sealed class GenerateGitPropertiesCacheTask : Task, ITask
Inheritance
GenerateGitPropertiesCacheTask
Implements
Inherited Members

Properties

CacheFile

Gets or sets the shared cache file to write.

[Required]
public string CacheFile { get; set; }

Property Value

string

CommitIdAbbrevLength

Gets or sets the length of the abbreviated commit ID to generate.

[Required]
public string CommitIdAbbrevLength { get; set; }

Property Value

string

EnableWarnings

Gets or sets a value indicating whether a forgivable anomaly is reported as a warning (true) or an informational message (false).

[Required]
public bool EnableWarnings { get; set; }

Property Value

bool

GitExecutable

Gets or sets the git executable to invoke.

[Required]
public string GitExecutable { get; set; }

Property Value

string

ReportFileWrites

Gets or sets a value indicating whether to report when the shared cache is (re)generated.

[Required]
public bool ReportFileWrites { get; set; }

Property Value

bool

RepositoryRoot

Gets or sets the resolved git repository root directory.

[Required]
public string RepositoryRoot { get; set; }

Property Value

string

Methods

Execute()

Must be implemented by derived class.

public override bool Execute()

Returns

bool

true, if successful