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

astefanutti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git

commit e6d13fa7024783e9fc15e9a7c94d5a4a46dfe73a
Author: Antonin Stefanutti <[email protected]>
AuthorDate: Mon Aug 16 15:37:28 2021 +0200

    chore(native): Set working directory in JVM trait
---
 pkg/trait/jvm.go | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/pkg/trait/jvm.go b/pkg/trait/jvm.go
index 8d9e3d3..1080de4 100644
--- a/pkg/trait/jvm.go
+++ b/pkg/trait/jvm.go
@@ -71,8 +71,8 @@ func (t *jvmTrait) Configure(e *Environment) (bool, error) {
                return false, nil
        }
 
-       if t := e.Catalog.GetTrait(quarkusTraitId); t != nil && 
t.(*quarkusTrait).isNativePackageType() {
-               if quarkus := t.(*quarkusTrait); IsNilOrTrue(quarkus.Enabled) 
&& quarkus.isNativePackageType() {
+       if trait := e.Catalog.GetTrait(quarkusTraitId); trait != nil {
+               if quarkus := trait.(*quarkusTrait); 
IsNilOrTrue(quarkus.Enabled) && quarkus.isNativePackageType() {
                        return false, nil
                }
        }
@@ -200,6 +200,8 @@ func (t *jvmTrait) Apply(e *Environment) error {
                container.Args = args
        }
 
+       container.WorkingDir = builder.DeploymentDir
+
        return nil
 }
 

Reply via email to