Package org.apache.maven.api.services
Interface ToolchainsBuilder
- All Superinterfaces:
Service
- All Known Implementing Classes:
DefaultToolchainsBuilder
Builds the effective toolchains from a user toolchains file and/or an installation toolchains file.
- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptionbuild(ToolchainsBuilderRequest request) Builds the effective toolchains for the specified toolchains files.default ToolchainsBuilderResultBuilds the effective toolchains for the specified toolchains sources.
-
Method Details
-
build
Builds the effective toolchains for the specified toolchains files.- Parameters:
request- the toolchains building request that holds the parameters, must not benull- Returns:
- the result of the toolchains building, never
null - Throws:
ToolchainsBuilderException- if the effective toolchains could not be built
-
build
@Nonnull default ToolchainsBuilderResult build(@Nonnull Session session, @Nonnull Source installationToolchainsFile, @Nonnull Source userToolchainsSource) Builds the effective toolchains for the specified toolchains sources.- Parameters:
session- theSession, must not benullinstallationToolchainsFile- TheSourcepointing to the installation toolchains, must not benulluserToolchainsSource- TheSourcepointing to the user toolchains, must not benull- Throws:
ToolchainsBuilderException- if the project cannot be createdIllegalArgumentException- if an argument isnullor invalid- See Also:
-