C# Class Bari.Core.Model.Discovery.ModuleProjectDiscovery

A ISuiteExplorer implementation which discovers modules and projects by traversing the file system starting from the suite's root directory.
Inheritance: ISuiteExplorer
Show file Open project: vigoo/bari Class Usage Examples

Public Methods

Method Description
ExtendWithDiscoveries ( Suite suite ) : void

Extends suite model with discovered information based on bari conventions

ModuleProjectDiscovery ( [ suiteRoot ) : System

Constructs the suite discovery implementation

Private Methods

Method Description
AddAllFiles ( SourceSet target, IFileSystemDirectory dir, SourceSetIgnoreList ignoreList ) : void

Recursively adds every file in a given directory to a source set (SourceSet)

DiscoverProjectSources ( Project project, IFileSystemDirectory projectDir, SourceSetIgnoreLists ignoreLists ) : void

Goes through all the subdirectories of a project and interprets them as source sets

Method Details

ExtendWithDiscoveries() public method

Extends suite model with discovered information based on bari conventions
public ExtendWithDiscoveries ( Suite suite ) : void
suite Suite The suite model to be extended with discoveries
return void

ModuleProjectDiscovery() public method

Constructs the suite discovery implementation
public ModuleProjectDiscovery ( [ suiteRoot ) : System
suiteRoot [ File system directory representing the suite's root
return System