C# Class CCNet.Build.Common.Execute

Running custom tools from command line process.
Show file Open project: shuruev/CCNet.Extensions

Public Methods

Method Description
DisplayCurrent ( Type argsType ) : void

Displays current execution.

DisplayUsage ( string description, Type argsType ) : void

Displays usage text.

ReportArguments ( Type argsType, bool displayValues ) : void

Reports known arguments and their current values, if requested.

ReportLink ( string url, string image ) : void

Reports URL to be displayed for the current project.

ReportPackage ( string name, string url, string source, string build, string notes ) : void

Reports package used by the current project.

ReportUsage ( string name, string server ) : void

Reports which projects are using the current project.

Run ( string fileName, string arguments ) : void

Runs custom tool and redirects its output to the main process.

RuntimeError ( Exception error ) : int

Handles run-time error.

Step ( string name ) : ExecuteStep

Marks execution step for console output.

Private Methods

Method Description
CreateProcess ( string fileName, string arguments ) : Process

Creates process instance to run.

Method Details

DisplayCurrent() public static method

Displays current execution.
public static DisplayCurrent ( Type argsType ) : void
argsType System.Type
return void

DisplayUsage() public static method

Displays usage text.
public static DisplayUsage ( string description, Type argsType ) : void
description string
argsType System.Type
return void

ReportArguments() public static method

Reports known arguments and their current values, if requested.
public static ReportArguments ( Type argsType, bool displayValues ) : void
argsType System.Type
displayValues bool
return void

ReportLink() public static method

Reports URL to be displayed for the current project.
public static ReportLink ( string url, string image ) : void
url string
image string
return void

ReportPackage() public static method

Reports package used by the current project.
public static ReportPackage ( string name, string url, string source, string build, string notes ) : void
name string
url string
source string
build string
notes string
return void

ReportUsage() public static method

Reports which projects are using the current project.
public static ReportUsage ( string name, string server ) : void
name string
server string
return void

Run() public static method

Runs custom tool and redirects its output to the main process.
public static Run ( string fileName, string arguments ) : void
fileName string
arguments string
return void

RuntimeError() public static method

Handles run-time error.
public static RuntimeError ( Exception error ) : int
error System.Exception
return int

Step() public static method

Marks execution step for console output.
public static Step ( string name ) : ExecuteStep
name string
return ExecuteStep