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 a global toolchains file.
-
Method Summary
Modifier and TypeMethodDescriptionbuild
(ToolchainsBuilderRequest request) Builds the effective toolchains for the specified toolchains files.default ToolchainsBuilderResult
Builds 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 globalToolchainsSource, @Nonnull Source userToolchainsSource) Builds the effective toolchains for the specified toolchains sources.- Parameters:
session
- theSession
, must not benull
globalToolchainsSource
- TheSource
pointing to the global toolchains, must not benull
userToolchainsSource
- TheSource
pointing to the user toolchains, must not benull
- Throws:
ToolchainsBuilderException
- if the project cannot be createdIllegalArgumentException
- if an argument isnull
or invalid- See Also:
-