Skip to content

Commit 3fe532e

Browse files
committed
cleanups after a rebase
1 parent 9489f45 commit 3fe532e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

client/driver/java.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ func (d *JavaDriver) Start(ctx *ExecContext, task *structs.Task) (DriverHandle,
112112
// Get the environment variables.
113113
envVars := TaskEnvironmentVariables(ctx, task)
114114

115+
args := []string{}
115116
// Look for jvm options
116117
jvm_options, ok := task.Config["jvm_options"]
117118
if ok && jvm_options != "" {
@@ -120,7 +121,7 @@ func (d *JavaDriver) Start(ctx *ExecContext, task *structs.Task) (DriverHandle,
120121
}
121122

122123
// Build the argument list.
123-
args := []string{"-jar", filepath.Join(allocdir.TaskLocal, jarName)}
124+
args = append(args, "-jar", filepath.Join(allocdir.TaskLocal, jarName))
124125
if argRaw, ok := task.Config["args"]; ok {
125126
args = append(args, argRaw)
126127
}

0 commit comments

Comments
 (0)