Class ToolFinder


  • public class ToolFinder
    extends java.lang.Object
    Finds java tools to execute on behalf of a maven plugin.
    • Constructor Summary

      Constructors 
      Constructor Description
      ToolFinder​(org.apache.maven.toolchain.Toolchain toolchain)
      Creates the toolfinder.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.File find​(java.lang.String toolName)
      Finds the file of a tool's excecutable.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ToolFinder

        public ToolFinder​(org.apache.maven.toolchain.Toolchain toolchain)
        Creates the toolfinder.
        Parameters:
        toolchain - the optional toolchain
    • Method Detail

      • find

        public java.io.File find​(java.lang.String toolName)
        Finds the file of a tool's excecutable.
        Parameters:
        toolName - the platform independent tool name
        Returns:
        file representing the tool's executable, or null if the tool can not be found