Use optional() instead of required() to construct javaMemoryLimit argument in JavaCommandLineFunction
This commit is contained in:
parent
d014c7faf9
commit
1ba03a5e72
|
|
@ -72,7 +72,7 @@ trait JavaCommandLineFunction extends CommandLineFunction {
|
|||
null
|
||||
}
|
||||
|
||||
def javaOpts = required("-Xmx", javaMemoryLimit.map(gb => (gb * 1024).ceil.toInt), "m", spaceSeparated=false) +
|
||||
def javaOpts = optional("-Xmx", javaMemoryLimit.map(gb => (gb * 1024).ceil.toInt), "m", spaceSeparated=false) +
|
||||
required("-Djava.io.tmpdir=", jobTempDir, spaceSeparated=false)
|
||||
|
||||
def commandLine = required("java") +
|
||||
|
|
|
|||
Loading…
Reference in New Issue