Interface Launcher.Context

Enclosing class:
Launcher

public static interface Launcher.Context
Context for launching child processes.
  • Method Details

    • createChildProcessBuilder

      ProcessBuilder createChildProcessBuilder(List<String> javaOptions, List<String> arguments)
      Create a ProcessBuilder to launch another instance of this process.
      Parameters:
      javaOptions - additional JVM options to pass to process
      arguments - additional command line arguments for process
      Returns:
      process builder
    • autoRunFile

      default Optional<File> autoRunFile()
      Provide an optional file to be run on launch, eg. for embedding the launcher in a project. If the context provides an auto-run file and the file option is specified, an exception will be thrown on launch. An implementation that doesn't want this behaviour should return an empty optional if a file is specified.
      Returns:
      optional file to run on launch