Skip to content

Java Extras

Philip Crotwell edited this page Apr 20, 2018 · 1 revision

Setting command line options for Java

You can add items that will become command line options to the java command with javaExtras in the configuration. They are placed in JVMOptions in the Info.plist for Oracle java. Items that are key only should use null as the second argument.

For example, to set the maximum memory used to a gigabyte:

macAppBundle {
  ...
  javaExtras.put("-Xmx1024m",null)
}
Clone this wiki locally