Use optional() instead of required() to construct javaMemoryLimit argument in JavaCommandLineFunction

This commit is contained in:
David Roazen 2011-12-05 14:06:00 -05:00
parent d014c7faf9
commit 1ba03a5e72
1 changed files with 1 additions and 1 deletions

View File

@ -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") +