Class DefaultToolchainManager.ToolchainWrapper

java.lang.Object
org.apache.maven.internal.impl.DefaultToolchainManager.ToolchainWrapper
All Implemented Interfaces:
Toolchain
Enclosing class:
DefaultToolchainManager

private static class DefaultToolchainManager.ToolchainWrapper extends Object implements Toolchain
  • Field Details

    • toolchain

      private final Toolchain toolchain
  • Constructor Details

    • ToolchainWrapper

      ToolchainWrapper(Toolchain toolchain)
  • Method Details

    • getType

      public String getType()
      Description copied from interface: Toolchain
      Gets the type of toolchain.
      Specified by:
      getType in interface Toolchain
      Returns:
      the toolchain type
    • findTool

      public String findTool(String toolName)
      Description copied from interface: Toolchain
      Gets the platform tool executable.
      Specified by:
      findTool in interface Toolchain
      Parameters:
      toolName - the tool platform independent tool name
      Returns:
      file representing the tool executable, or null if the tool cannot be found
    • matchesRequirements

      public boolean matchesRequirements(Map<String,String> requirements)
      Description copied from interface: Toolchain
      Let the toolchain decide if it matches requirements defined in the toolchain plugin configuration.
      Specified by:
      matchesRequirements in interface Toolchain
      Parameters:
      requirements - key value pair, may not be null
      Returns:
      true if the requirements match, otherwise false
    • toString

      public String toString()
      Overrides:
      toString in class Object