C# Class Bari.Core.Tools.DownloadableExternalTool

Represents an external tool which can be automatically downloaded if missing
Inheritance: ExternalTool
Afficher le fichier Open project: vigoo/bari

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode Description
DownloadTool ( ) : void

Method Details

DownloadAndDeploy() protected méthode

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

DownloadableExternalTool() public méthode

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
Résultat System

EnsureToolAvailable() protected méthode

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
Résultat void