Interface ToolchainsBuilder

All Known Implementing Classes:
DefaultToolchainsBuilder

@Deprecated public interface ToolchainsBuilder
Deprecated.
use ToolchainsBuilder instead
Builds the toolchains model from a previously configured filesystem path to the toolchains file. Note: This is an internal component whose interface can change without prior notice.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.maven.toolchain.model.PersistedToolchains
    build(File userToolchainsFile)
    Deprecated.
    Builds the toolchains model from the configured toolchain files.
  • Method Details

    • build

      org.apache.maven.toolchain.model.PersistedToolchains build(File userToolchainsFile) throws MisconfiguredToolchainException
      Deprecated.
      Builds the toolchains model from the configured toolchain files.
      Parameters:
      userToolchainsFile - The path to the toolchains file, may be null 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.