args.add(String.format("-Xms%s", minHeapSize));
}
if (maxHeapSize != null) {
args.add(String.format("-Xmx%s", maxHeapSize));
}
FileCollection bootstrapClasspath = getBootstrapClasspath();
if (!bootstrapClasspath.isEmpty()) {
args.add(String.format("-Xbootclasspath:%s", bootstrapClasspath.getAsPath()));
}
// These are implemented as a system property, but don't really function like one
// So we include it in this “no system property” set.
formatSystemProperties(immutableSystemProperties, args);