From 21c2368626d30638de16c22de1c022529b43f07a Mon Sep 17 00:00:00 2001 From: Alex Dadgar Date: Thu, 4 Feb 2016 15:26:37 -0800 Subject: [PATCH] Fix java test --- client/driver/java.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/driver/java.go b/client/driver/java.go index 32170bcbd..d8bd394ac 100644 --- a/client/driver/java.go +++ b/client/driver/java.go @@ -12,7 +12,6 @@ import ( "syscall" "time" - "github.com/hashicorp/nomad/client/allocdir" "github.com/hashicorp/nomad/client/config" "github.com/hashicorp/nomad/client/driver/executor" 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. - args = append(args, "-jar", filepath.Join(allocdir.TaskLocal, jarName)) + args = append(args, "-jar", jarName) if len(driverConfig.Args) != 0 { args = append(args, driverConfig.Args...) }