}
private void addLauncherOptions() {
if (!includeLauncherOptions) { return; }
ForkOptions forkOptions = spec.getCompileOptions().getForkOptions();
if (forkOptions.getMemoryInitialSize() != null) {
args.add("-J-Xms" + forkOptions.getMemoryInitialSize().trim());
}
if (forkOptions.getMemoryMaximumSize() != null) {
args.add("-J-Xmx" + forkOptions.getMemoryMaximumSize().trim());
}
if (forkOptions.getJvmArgs() != null) {
args.addAll(forkOptions.getJvmArgs());
}
}