Skip to content

Commit

Permalink
fix(jvm): Integration do not shutdown gracefully when jvm.print-comma…
Browse files Browse the repository at this point in the history
…nd is set
  • Loading branch information
astefanutti committed Jun 25, 2020
1 parent e771d9e commit 0531788
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/trait/jvm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 0531788

Please sign in to comment.