- Enclosing class:
Launcher
public static interface Launcher.Context
Context for launching child processes.
-
Method Summary
Modifier and TypeMethodDescriptionProvide an optional file to be run on launch, eg. for embedding the launcher in a project.createChildProcessBuilder(List<String> javaOptions, List<String> arguments) Create aProcessBuilderto launch another instance of this process.
-
Method Details
-
createChildProcessBuilder
Create aProcessBuilderto launch another instance of this process.- Parameters:
javaOptions- additional JVM options to pass to processarguments- additional command line arguments for process- Returns:
- process builder
-
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
-