Interface Tools


  • public interface Tools
    The Tools interface for static methods. Do not use as interface.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static class  Tools.Run
      Class run.
    • Method Summary

      Static Methods 
      Modifier and Type Method Description
      static CallResult callInDir​(org.apache.maven.plugin.logging.Log log, Path dir, String... param)
      Calls a command with parameters in the work dir.
      static void run​(Runnable runnable)
      The run call.
      static void setModuleMain​(org.apache.maven.plugin.logging.Log log, Path targetJar)
      Sets the module main class if it is not an automatic module and the main class is not set but the main class is set in the manifest.
    • Method Detail

      • run

        static void run​(Runnable runnable)
        The run call.
        Parameters:
        runnable - the method to exec.
      • callInDir

        static CallResult callInDir​(org.apache.maven.plugin.logging.Log log,
                                    Path dir,
                                    String... param)
                             throws org.apache.maven.plugin.MojoExecutionException
        Calls a command with parameters in the work dir.
        Parameters:
        log - the logger.
        dir - the work dir.
        param - the command with its parameters.
        Returns:
        the call result.
        Throws:
        org.apache.maven.plugin.MojoExecutionException - is thrown if an error occurs.
      • setModuleMain

        static void setModuleMain​(org.apache.maven.plugin.logging.Log log,
                                  Path targetJar)
                           throws org.apache.maven.plugin.MojoExecutionException
        Sets the module main class if it is not an automatic module and the main class is not set but the main class is set in the manifest.
        Parameters:
        log - the logger.
        targetJar - the module to test and update.
        Throws:
        org.apache.maven.plugin.MojoExecutionException - is thrown if an error occurs.