C# Class NAnt.Core.Tasks.ExternalProgramBase

Inheritance: Task
显示文件 Open project: savornicesei/NAnt2

Private Properties

Property Type Description
DetermineFilePath string
ExternalProgramBase System
StreamReaderThread_Error void
StreamReaderThread_Output void

Protected Methods

Method Description
ExecuteTask ( ) : void

Starts the external process and captures its output.

PrepareProcess ( Process process ) : void

Updates the ProcessStartInfo of the specified Process.

StartProcess ( ) : Process

Starts the process and handles errors.

Private Methods

Method Description
DetermineFilePath ( ) : string

Determines the path of the external program that should be executed.

ExternalProgramBase ( ) : System

Static constructor that retrieves the specified timeout value for program output.

StreamReaderThread_Error ( ) : void

Reads from the stream until the external program is ended.

StreamReaderThread_Output ( ) : void

Reads from the stream until the external program is ended.

Method Details

ExecuteTask() protected method

Starts the external process and captures its output.
/// The external process did not finish within the configured timeout. /// -or- /// The exit code of the external process indicates a failure. ///
protected ExecuteTask ( ) : void
return void

PrepareProcess() protected method

Updates the ProcessStartInfo of the specified Process.
protected PrepareProcess ( Process process ) : void
process Process The of which the should be updated.
return void

StartProcess() protected method

Starts the process and handles errors.
protected StartProcess ( ) : Process
return Process