Fix java test
This commit is contained in:
parent
77b89d15e4
commit
21c2368626
|
@ -12,7 +12,6 @@ import (
|
||||||
"syscall"
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/hashicorp/nomad/client/allocdir"
|
|
||||||
"github.com/hashicorp/nomad/client/config"
|
"github.com/hashicorp/nomad/client/config"
|
||||||
"github.com/hashicorp/nomad/client/driver/executor"
|
"github.com/hashicorp/nomad/client/driver/executor"
|
||||||
cstructs "github.com/hashicorp/nomad/client/driver/structs"
|
cstructs "github.com/hashicorp/nomad/client/driver/structs"
|
||||||
|
@ -133,7 +132,7 @@ func (d *JavaDriver) Start(ctx *ExecContext, task *structs.Task) (DriverHandle,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Build the argument list.
|
// Build the argument list.
|
||||||
args = append(args, "-jar", filepath.Join(allocdir.TaskLocal, jarName))
|
args = append(args, "-jar", jarName)
|
||||||
if len(driverConfig.Args) != 0 {
|
if len(driverConfig.Args) != 0 {
|
||||||
args = append(args, driverConfig.Args...)
|
args = append(args, driverConfig.Args...)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue