This is an automated email from the ASF dual-hosted git repository.

nferraro pushed a commit to branch release-1.0.x
in repository https://gitbox.apache.org/repos/asf/camel-k.git

commit 8d9229fde0bbd7dfb7d108d41799044f73b5539c
Author: Antonin Stefanutti <[email protected]>
AuthorDate: Wed Jun 24 18:50:45 2020 +0200

    fix(jvm): Integration do not shutdown gracefully when jvm.print-command is 
set
---
 pkg/trait/jvm.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/trait/jvm.go b/pkg/trait/jvm.go
index e6252a9..4cbcbb9 100644
--- a/pkg/trait/jvm.go
+++ b/pkg/trait/jvm.go
@@ -165,7 +165,7 @@ func (t *jvmTrait) Apply(e *Environment) error {
        args = append(args, e.CamelCatalog.Runtime.ApplicationClass)
 
        if t.PrintCommand {
-               args = append([]string{"java"}, args...)
+               args = append([]string{"exec", "java"}, args...)
                container.Command = []string{"/bin/sh", "-c"}
                cmd := strings.Join(args, " ")
                container.Args = []string{"echo " + cmd + " && " + cmd}

Reply via email to