Package org.apache.maven.toolchain
Class DefaultToolchainsBuilder
- java.lang.Object
-
- org.apache.maven.toolchain.DefaultToolchainsBuilder
-
- All Implemented Interfaces:
ToolchainsBuilder
@Deprecated @Component(role=ToolchainsBuilder.class, hint="default") public class DefaultToolchainsBuilder extends Object implements ToolchainsBuilder
Deprecated.instead useDefaultToolchainsBuilder
- Author:
- Benjamin Bentmann
-
-
Constructor Summary
Constructors Constructor Description DefaultToolchainsBuilder()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description PersistedToolchains
build(File userToolchainsFile)
Deprecated.Builds the toolchains model from the configured toolchain files.
-
-
-
Method Detail
-
build
public PersistedToolchains build(File userToolchainsFile) throws MisconfiguredToolchainException
Deprecated.Description copied from interface:ToolchainsBuilder
Builds the toolchains model from the configured toolchain files.- Specified by:
build
in interfaceToolchainsBuilder
- Parameters:
userToolchainsFile
- The path to the toolchains file, may benull
to disable parsing.- Returns:
- The toolchains model or
null
if no toolchain file was configured or the configured file does not exist. - Throws:
MisconfiguredToolchainException
- If the toolchain file exists but cannot be parsed.
-
-