Addressed some review comments

This commit is contained in:
Diptanu Choudhury
2015-11-16 22:29:06 -05:00
parent 640337547a
commit b8d468f5ad
2 changed files with 13 additions and 14 deletions

View File

@@ -126,10 +126,9 @@ func (d *JavaDriver) Start(ctx *ExecContext, task *structs.Task) (DriverHandle,
args := []string{}
// Look for jvm options
jvm_options := driverConfig.JvmOpts
if jvm_options != "" {
d.logger.Printf("[DEBUG] driver.java: found JVM options: %s", jvm_options)
args = append(args, jvm_options)
if driverConfig.JvmOpts != "" {
d.logger.Printf("[DEBUG] driver.java: found JVM options: %s", driverConfig.JvmOpts)
args = append(args, driverConfig.JvmOpts)
}
// Build the argument list.