diff options
Diffstat (limited to 'client/go/jvm/container.go')
-rw-r--r-- | client/go/jvm/container.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client/go/jvm/container.go b/client/go/jvm/container.go index c755672da86..f52a34a6f6d 100644 --- a/client/go/jvm/container.go +++ b/client/go/jvm/container.go @@ -65,7 +65,9 @@ func (cb *containerBase) Exec() { p := prog.NewSpec(argv) p.ConfigureNumaCtl() cb.JvmOptions().exportEnvSettings(p) - writeEnvAsProperties(p.EffectiveEnv(), cb.propsFile) + if cb.propsFile != "" { + writeEnvAsProperties(p.EffectiveEnv(), cb.propsFile) + } trace.Info("starting container; env:", readableEnv(p.Env)) trace.Info("starting container; exec:", argv) err := p.Run() |