Summary
Defines the base class for
ITask
classes that work with the GIT command line tool.
- Namespace
- NBuildKit
.MsBuild .Tasks .Core - Base Types
- Derived Types
graph TD
Base0["CommandLineToolTask"]-->Type
click Base0 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.Core/CommandLineToolTask"
Base1["BaseTask"]-->Base0
click Base1 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.Core/BaseTask"
Base2["Task"]-->Base1
Type["GitCommandLineToolTask"]
class Type type-node
Type-->Derived0["GitMerge"]
click Derived0 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.VersionControl/GitMerge"
Type-->Derived1["GitCheckout"]
click Derived1 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.VersionControl/GitCheckout"
Type-->Derived2["GitAdd"]
click Derived2 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.VersionControl/GitAdd"
Type-->Derived3["GitClone"]
click Derived3 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.VersionControl/GitClone"
Type-->Derived4["GitNewFiles"]
click Derived4 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.VersionControl/GitNewFiles"
Type-->Derived5["GitCurrentBranch"]
click Derived5 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.VersionControl/GitCurrentBranch"
Type-->Derived6["ExtractIssueIdsFromGitCommitMessages"]
click Derived6 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.VersionControl/ExtractIssueIdsFromGitCommitMessages"
Type-->Derived7["GitCurrentRevision"]
click Derived7 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.VersionControl/GitCurrentRevision"
Type-->Derived8["GitReset"]
click Derived8 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.VersionControl/GitReset"
Type-->Derived9["GitCommit"]
click Derived9 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.VersionControl/GitCommit"
Type-->Derived10["GitPush"]
click Derived10 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.VersionControl/GitPush"
Syntax
public abstract class GitCommandLineToolTask : CommandLineToolTask
Constructors
Name | Summary |
---|---|
Git |
Initializes a new instance of the GitCommandLineToolTask class.
|
Properties
Name | Value | Summary |
---|---|---|
DefaultDataHandler | Data |
Gets the event handler that processes data from the data stream, or standard output stream, of
the command line application.By default logs a message for each output.
Inherited from CommandLineToolTask
|
DefaultErrorHandler | Data |
Gets the event handler that processes data from the data stream, or standard output stream, of
the command line application.By default logs a message for each output.
Inherited from CommandLineToolTask
|
ErrorInformation | ITaskItem[] |
Gets or sets the collection containing the error codes for the task.
Inherited from BaseTask
|
GitExecutablePath | ITaskItem |
Gets or sets the path to the GIT command line executable.
|
Log |
bool |
Gets or sets a value indicating whether the environment variables for the process should be logged.
Inherited from CommandLineToolTask
|
Workspace | ITaskItem |
Gets or sets the full path to the workspace that contains the .git directory.
|
Methods
Name | Value | Summary |
---|---|---|
ErrorCodeById |
string |
Returns the error code for the given ID.
Inherited from BaseTask
|
GetAbsolutePath |
string |
Returns the absolute path for the given path item.
Inherited from BaseTask
|
GetAbsolutePath |
string |
Returns the absolute path for the given path item.
Inherited from BaseTask
|
GetAbsolutePath |
string |
Returns the absolute path for the given path item.
Inherited from BaseTask
|
GetFullToolPath |
string |
Returns the most complete path for the given executable tool. May return just the name of the tool if the tool path is found via the
PATH environment variable.
Inherited from CommandLineToolTask
|
GetFullToolPath |
string |
Returns the most complete path for the given executable tool. May return just the name of the tool if the tool path is found via the
PATH environment variable.
Inherited from CommandLineToolTask
|
GetGitOutput |
string |
Invokes the GIT command line tool with the given arguments in the provided workspace directory.
|
Invoke |
int |
Invokes the command line tool at the given path with the given arguments.
Inherited from CommandLineToolTask
|
Invoke |
int |
Invokes the command line tool at the given path with the given arguments.
Inherited from CommandLineToolTask
|
InvokeGit |
int |
Invokes the GIT command line tool with the given arguments in the provided workspace directory.
|
Update |
void |
Updates the environment variables for the application prior to execution.
Inherited from CommandLineToolTask
|
Verbosity |
string |
Gets the verbosity that the current MsBuild instance is running at.
Inherited from BaseTask
static
|