Class AbstractRootProject.CommandBuilder
java.lang.Object
org.jdrupes.builder.core.AbstractRootProject.CommandBuilder
- All Implemented Interfaces:
RootProject.CommandBuilder
- Enclosing class:
AbstractRootProject
public class AbstractRootProject.CommandBuilder
extends Object
implements RootProject.CommandBuilder
The Class CommandBuilder.
-
Constructor Summary
ConstructorsConstructorDescriptionCommandBuilder(RootProject rootProject, String name) Initializes a new command builder. -
Method Summary
Modifier and TypeMethodDescriptionApply the request(s) to the projects selected by the given patterns instead of the root project.resources(ResourceRequest<?>... requests) Apply the request(s) to the root project or the selected projects.Do not apply the request(s) to the projects selected by the given patterns.
-
Constructor Details
-
CommandBuilder
Initializes a new command builder.- Parameters:
rootProject- the root projectname- the name
-
-
Method Details
-
projects
Description copied from interface:RootProject.CommandBuilderApply the request(s) to the projects selected by the given patterns instead of the root project.- Specified by:
projectsin interfaceRootProject.CommandBuilder- Parameters:
projects- the patterns- Returns:
- the command builder
-
without
Description copied from interface:RootProject.CommandBuilderDo not apply the request(s) to the projects selected by the given patterns.- Specified by:
withoutin interfaceRootProject.CommandBuilder- Parameters:
without- the patterns- Returns:
- the command builder
-
resources
Description copied from interface:RootProject.CommandBuilderApply the request(s) to the root project or the selected projects. The results from the request are written to the standard output.
To simplify the command alias definition, this method replaces a request with no intents (i.e. with
ResourceRequest.uses()being empty) with a request that uses all intents.- Specified by:
resourcesin interfaceRootProject.CommandBuilder- Parameters:
requests- the requests- Returns:
- the root project
-