Package dev.equo.ide

Class Launcher


  • public class Launcher
    extends java.lang.Object
    Thanks to Thipor Kong for his workaround for Gradle's windows problems.

    https://discuss.gradle.org/t/javaexec-fails-for-long-classpaths-on-windows/15266

    • Constructor Summary

      Constructors 
      Constructor Description
      Launcher()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.ArrayList<java.io.File> copyAndSortClasspath​(java.lang.Iterable<java.io.File> files)  
      static int launchAndInheritIO​(java.io.File cwd, java.util.List<java.lang.String> args)  
      static int launchAndInheritIO​(java.io.File cwd, java.util.List<java.lang.String> args, java.util.function.Consumer<java.lang.Process> monitorProcess)  
      static int launchAndInheritIO​(java.io.File cwd, java.util.List<java.lang.String> args, java.util.Map<java.lang.String,​java.lang.String> env, java.util.function.Consumer<java.lang.Process> monitorProcess)  
      static int launchJavaBlocking​(boolean blocking, java.util.List<java.io.File> cp, java.util.List<java.lang.String> vmArgs, java.lang.String mainClass, java.util.function.Consumer<java.lang.Process> monitorProcess, java.lang.String... args)  
      • Methods inherited from class java.lang.Object

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

      • Launcher

        public Launcher()
    • Method Detail

      • launchJavaBlocking

        public static int launchJavaBlocking​(boolean blocking,
                                             java.util.List<java.io.File> cp,
                                             java.util.List<java.lang.String> vmArgs,
                                             java.lang.String mainClass,
                                             @Nullable
                                             java.util.function.Consumer<java.lang.Process> monitorProcess,
                                             java.lang.String... args)
                                      throws java.io.IOException,
                                             java.lang.InterruptedException
        Throws:
        java.io.IOException
        java.lang.InterruptedException
      • launchAndInheritIO

        public static int launchAndInheritIO​(java.io.File cwd,
                                             java.util.List<java.lang.String> args)
                                      throws java.io.IOException,
                                             java.lang.InterruptedException
        Throws:
        java.io.IOException
        java.lang.InterruptedException
      • launchAndInheritIO

        public static int launchAndInheritIO​(java.io.File cwd,
                                             java.util.List<java.lang.String> args,
                                             @Nullable
                                             java.util.function.Consumer<java.lang.Process> monitorProcess)
                                      throws java.io.IOException,
                                             java.lang.InterruptedException
        Throws:
        java.io.IOException
        java.lang.InterruptedException
      • launchAndInheritIO

        public static int launchAndInheritIO​(java.io.File cwd,
                                             java.util.List<java.lang.String> args,
                                             java.util.Map<java.lang.String,​java.lang.String> env,
                                             @Nullable
                                             java.util.function.Consumer<java.lang.Process> monitorProcess)
                                      throws java.io.IOException,
                                             java.lang.InterruptedException
        Throws:
        java.io.IOException
        java.lang.InterruptedException
      • copyAndSortClasspath

        public static java.util.ArrayList<java.io.File> copyAndSortClasspath​(java.lang.Iterable<java.io.File> files)