Class AbstractRootProject
java.lang.Object
org.jdrupes.builder.core.AbstractProvider
org.jdrupes.builder.core.AbstractProject
org.jdrupes.builder.core.AbstractRootProject
- All Implemented Interfaces:
AutoCloseable, Project, ResourceProvider, RootProject
- Direct Known Subclasses:
BootstrapRoot
The Class AbstractRootProject.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassThe Class CommandBuilder.static final recordThe Record CommandData.Nested classes/interfaces inherited from interface Project
Project.Properties -
Constructor Summary
ConstructorsConstructorDescriptionAbstractRootProject(NamedParameter<?>... params) Initializes a new abstract root project. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close.commandAlias(String name) Command alias.context()Convenience method to access the build context which is sometimes needed in the context of resource requests.lookupCommand(String name) Lookup command.Project.Root project.Methods inherited from class AbstractProject
dependency, directory, directory, doProvide, equals, generator, get, hashCode, jdbldDirectory, name, name, parent, parentProject, projects, providers, providers, set, toStringMethods inherited from class AbstractProvider
of, rename, vavrStreamMethods inherited from interface Project
buildDirectory, dependency, dependency, directory, generator, generator, get, nameWithDirectory, parentProject, providers, providers, providers, readString, relativize, setMethods inherited from interface ResourceProvider
name, of, resourcesMethods inherited from interface RootProject
prepareProject, projects, projects
-
Constructor Details
-
AbstractRootProject
Initializes a new abstract root project.- Parameters:
params- the params
-
-
Method Details
-
context
Description copied from interface:ResourceProviderConvenience method to access the build context which is sometimes needed in the context of resource requests.- Specified by:
contextin interfaceResourceProvider- Overrides:
contextin classAbstractProvider- Returns:
- the builder configuration
-
close
Close.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceRootProject
-
rootProject
Root project.- Specified by:
rootProjectin interfaceProject- Overrides:
rootProjectin classAbstractProject- Returns:
- the root project
-
project
-
commandAlias
Command alias.- Specified by:
commandAliasin interfaceRootProject- Parameters:
name- the name- Returns:
- the root project. command builder
-
lookupCommand
Lookup command.- Parameters:
name- the name- Returns:
- the command data
-