C# Class Bari.Core.Tools.DownloadableExternalTool

Represents an external tool which can be automatically downloaded if missing
Inheritance: ExternalTool
Datei anzeigen Open project: vigoo/bari

Public Methods

Method Description
DownloadableExternalTool ( string name, string defaultInstallLocation, string executableName, Uri url, bool isDotNETProcess, IParameters parameters ) : System

Defines a tool which can be downloaded if missing from an URL

Protected Methods

Method Description
DownloadAndDeploy ( string target ) : void

Downloads the tool to the given target path

EnsureToolAvailable ( ) : void

Checks if the tool is available and download, copy, install etc. it if possible

If the tool cannot be acquired then it throws an exception.

Private Methods

Method Description
DownloadTool ( ) : void

Method Details

DownloadAndDeploy() protected method

Downloads the tool to the given target path
protected DownloadAndDeploy ( string target ) : void
target string Target directory
return void

DownloadableExternalTool() public method

Defines a tool which can be downloaded if missing from an URL
public DownloadableExternalTool ( string name, string defaultInstallLocation, string executableName, Uri url, bool isDotNETProcess, IParameters parameters ) : System
name string Unique name of this tool
defaultInstallLocation string Default installation location where the tool can be found
executableName string File name of the executable to be ran
url System.Uri The URL where the tool can be downloaded from
isDotNETProcess bool If true the process will be executed with mono when not running on MS CLR
parameters IParameters Application parameters
return System

EnsureToolAvailable() protected method

Checks if the tool is available and download, copy, install etc. it if possible

If the tool cannot be acquired then it throws an exception.

protected EnsureToolAvailable ( ) : void
return void