Bari.Core.Model.Discovery.ModuleProjectDiscovery.DiscoverProjectSources C# (CSharp) Method

DiscoverProjectSources() private method

Goes through all the subdirectories of a project and interprets them as source sets
private DiscoverProjectSources ( Project project, IFileSystemDirectory projectDir, SourceSetIgnoreLists ignoreLists ) : void
project Project The project to be extended with source sets
projectDir IFileSystemDirectory The project's directory
ignoreLists SourceSetIgnoreLists The suite's source set ignore lists
return void
        private void DiscoverProjectSources(Project project, IFileSystemDirectory projectDir, SourceSetIgnoreLists ignoreLists)
        {
            foreach (var sourceSetName in projectDir.ChildDirectories)
            {
                var sourceSet = project.GetSourceSet(sourceSetName);
                AddAllFiles(sourceSet, projectDir.GetChildDirectory(sourceSetName), ignoreLists.Get(new SourceSetType(sourceSetName)));
            }
        }