Interface RootProject.CommandBuilder
- All Known Implementing Classes:
AbstractRootProject.CommandBuilder
- Enclosing interface:
RootProject
public static interface RootProject.CommandBuilder
A builder for command aliases.
-
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.
-
Method Details
-
projects
Apply the request(s) to the projects selected by the given patterns instead of the root project.- Parameters:
patterns- the patterns- Returns:
- the command builder
-
without
Do not apply the request(s) to the projects selected by the given patterns.- Parameters:
patterns- the patterns- Returns:
- the command builder
-
resources
Apply 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.- Parameters:
requests- the requests- Returns:
- the root project
-