Package dev.equo.ide
Class Launcher
java.lang.Object
dev.equo.ide.Launcher
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 -
Method Summary
Modifier and TypeMethodDescriptioncopyAndSortClasspath(Iterable<File> files) static intlaunchAndInheritIO(File cwd, List<String> args) static intstatic intlaunchAndInheritIO(File cwd, List<String> args, Map<String, String> env, Consumer<Process> monitorProcess) static intlaunchJavaBlocking(boolean blocking, List<File> cp, List<String> vmArgs, String mainClass, Consumer<Process> monitorProcess, String... args)
-
Constructor Details
-
Launcher
public Launcher()
-
-
Method Details
-
launchJavaBlocking
public static int launchJavaBlocking(boolean blocking, List<File> cp, List<String> vmArgs, String mainClass, @Nullable Consumer<Process> monitorProcess, String... args) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
launchAndInheritIO
public static int launchAndInheritIO(File cwd, List<String> args) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
launchAndInheritIO
public static int launchAndInheritIO(File cwd, List<String> args, @Nullable Consumer<Process> monitorProcess) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
launchAndInheritIO
public static int launchAndInheritIO(File cwd, List<String> args, Map<String, String> env, @Nullable Consumer<Process> monitorProcess) throws IOException, InterruptedException- Throws:
IOExceptionInterruptedException
-
copyAndSortClasspath
-