Interface RootProject
- All Superinterfaces:
Project, ResourceProvider
- All Known Implementing Classes:
BootstrapRoot
A marker interface to identify the root project.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA builder for command aliases.Nested classes/interfaces inherited from interface Project
Project.Properties -
Method Summary
Modifier and TypeMethodDescriptiondefault RootProject.CommandBuildercommandAlias(String name) Define an alias for requesting one or more specific resources.default voidprepareProject(Project project) May be overridden by the root project to apply common settings to projects of specific types or with specific properties.Return the projects matching the pattern.Methods inherited from interface Project
buildDirectory, dependency, dependency, directory, generator, generator, get, newResource, parentProject, project, providers, providers, providers, readString, relativize, rootProject, set
-
Method Details
-
prepareProject
May be overridden by the root project to apply common settings to projects of specific types or with specific properties.
This method must be invoked by any base class for project configuration classes before it returns the control to the project configuration class' constructor. The method is never invoked by the user.
- Parameters:
project- the project to prepare- Throws:
Exception- the exception
-
projects
Return the projects matching the pattern. The pattern is a glob pattern applied to the project's directory.""matches the root project."*"matches the root project and all immediate sub project."**"matches all projects.- Parameters:
pattern- the pattern- Returns:
- the stream
-
commandAlias
Define an alias for requesting one or more specific resources.- Parameters:
name- the name- Returns:
- the root project
-