From 73d74763a0f37d0d0d2175848fd0ca448056f32b Mon Sep 17 00:00:00 2001 From: Davide Salerno Date: Wed, 30 Aug 2023 15:30:04 +0200 Subject: [PATCH] Update modules/kogito-swf/common/scripts/added/build-app.sh Co-authored-by: Tristan Radisson --- modules/kogito-swf/common/scripts/added/build-app.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/kogito-swf/common/scripts/added/build-app.sh b/modules/kogito-swf/common/scripts/added/build-app.sh index 4e7e57e6e..762c791e6 100755 --- a/modules/kogito-swf/common/scripts/added/build-app.sh +++ b/modules/kogito-swf/common/scripts/added/build-app.sh @@ -20,7 +20,7 @@ fi SUPPORTED_FILES=(".yaml" ".yml" ".json" ".properties" ".mvn/jvm.config") log_info "-> Copying files from ${resources_path}, if any..." if [ ! -z "${resources_path}" ]; then - swf_home_dir=$(pwd) && cd "${resources_path}" && find . -regex '.*\.\(yaml\|yml\|json\|properties\)$' | sed 's|^./||' | xargs cp -v --parents -t "${swf_home_dir}"/src/main/resources/ && cd "${swf_home_dir}" + cd "${resources_path}" && find . -regex '.*\.\(yaml\|yml\|json\|properties\)$' | sed 's|^./||' | xargs cp -v --parents -t "${swf_home_dir}"/src/main/resources/ && cd - find "${resources_path}" -name 'jvm.config' -exec echo "--> found {}" \; -exec mkdir -p .mvn \; -exec cp -v {} .mvn/ \; else log_warning "-> Nothing to copy from ${resources_path}"