C# Класс _3PA.MainFeatures.Pro.Deployer

Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
DeploySingleFile bool

Открытые методы

Метод Описание
BuildHtmlTableForRules ( List rules ) : string

returns a string containing an html representation of the compilation path table

DeployFiles ( List deployToDo, Action updateDeploymentPercentage = null ) : List

Deploy a given list of files (can reduce the list if there are duplicated items so it returns it)

DeployFilesForStep ( int step, List listOfSourceDir, SearchOption searchOptions, Action updateDeploymentPercentage = null ) : List

Creates a list of files to deploy after a compilation, for each Origin file will correspond one (or more if it's a .cls) .r file, and one .lst if the option has been checked

Deployer ( ProEnvironment proEnv ) : System

Constructor

Deployer ( ProEnvironment proEnv, Deployer deployer ) : System

Hard copy

EditRules ( ) : void
Export ( ) : void
GetFilesList ( List listOfFolderPath, SearchOption searchOptions, int step ) : HashSet

Returns a list of files in the given folders (recursively or not depending on the option), this list is filtered thanks to the rules given (also, for step == 0, only progress files are listed)

GetTargetDirsNeededForFile ( string sourcePath, int step ) : List

This method returns the transfer directories for the given source path, for each : If CompileLocally, returns the directory of the source If the deployment dir is empty and we didn't match an absolute compilation path, returns the source directoy as well

GetTransfersNeededForFile ( string file, int step ) : List

returns the list of transfers needed for a given file

Import ( ) : void

Read the list of compilation Path Items, if the file is present in the Config dir, use it

IsFilePassingFilters ( string filePath, List includeFiltersList, List excludeFiltersList ) : bool

Returns true if the given file path passes the include + exclude filters

Приватные методы

Метод Описание
DeploySingleFile ( FileToDeploy file ) : bool

Transfer a single file

Описание методов

BuildHtmlTableForRules() публичный статический Метод

returns a string containing an html representation of the compilation path table
public static BuildHtmlTableForRules ( List rules ) : string
rules List
Результат string

DeployFiles() публичный Метод

Deploy a given list of files (can reduce the list if there are duplicated items so it returns it)
public DeployFiles ( List deployToDo, Action updateDeploymentPercentage = null ) : List
deployToDo List
updateDeploymentPercentage Action
Результат List

DeployFilesForStep() публичный Метод

Creates a list of files to deploy after a compilation, for each Origin file will correspond one (or more if it's a .cls) .r file, and one .lst if the option has been checked
public DeployFilesForStep ( int step, List listOfSourceDir, SearchOption searchOptions, Action updateDeploymentPercentage = null ) : List
step int
listOfSourceDir List
searchOptions SearchOption
updateDeploymentPercentage Action
Результат List

Deployer() публичный Метод

Constructor
public Deployer ( ProEnvironment proEnv ) : System
proEnv ProEnvironment
Результат System

Deployer() публичный Метод

Hard copy
public Deployer ( ProEnvironment proEnv, Deployer deployer ) : System
proEnv ProEnvironment
deployer Deployer
Результат System

EditRules() публичный статический Метод

public static EditRules ( ) : void
Результат void

Export() публичный статический Метод

public static Export ( ) : void
Результат void

GetFilesList() публичный Метод

Returns a list of files in the given folders (recursively or not depending on the option), this list is filtered thanks to the rules given (also, for step == 0, only progress files are listed)
public GetFilesList ( List listOfFolderPath, SearchOption searchOptions, int step ) : HashSet
listOfFolderPath List
searchOptions SearchOption
step int
Результат HashSet

GetTargetDirsNeededForFile() публичный Метод

This method returns the transfer directories for the given source path, for each : If CompileLocally, returns the directory of the source If the deployment dir is empty and we didn't match an absolute compilation path, returns the source directoy as well
public GetTargetDirsNeededForFile ( string sourcePath, int step ) : List
sourcePath string
step int
Результат List

GetTransfersNeededForFile() публичный Метод

returns the list of transfers needed for a given file
public GetTransfersNeededForFile ( string file, int step ) : List
file string
step int
Результат List

Import() публичный статический Метод

Read the list of compilation Path Items, if the file is present in the Config dir, use it
public static Import ( ) : void
Результат void

IsFilePassingFilters() публичный Метод

Returns true if the given file path passes the include + exclude filters
public IsFilePassingFilters ( string filePath, List includeFiltersList, List excludeFiltersList ) : bool
filePath string
includeFiltersList List
excludeFiltersList List
Результат bool