summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmvn-phase-lib.sh2
-rwxr-xr-xmvn-phase-script.sh6
2 files changed, 6 insertions, 2 deletions
diff --git a/mvn-phase-lib.sh b/mvn-phase-lib.sh
index ce38042..6cef83e 100755
--- a/mvn-phase-lib.sh
+++ b/mvn-phase-lib.sh
@@ -364,7 +364,7 @@ upload_files_of_extension()
{
FILES=$(ls -1 ./*."$1")
for F in $FILES ; do
- upload_raw_file "$F"
+ upload_raw_file "$F" "$2"
done
}
diff --git a/mvn-phase-script.sh b/mvn-phase-script.sh
index 184ac99..3da3e01 100755
--- a/mvn-phase-script.sh
+++ b/mvn-phase-script.sh
@@ -115,7 +115,11 @@ install)
;;
deploy)
echo "==> deploy phase script"
- upload_files_of_extension yaml
+ if [ -z "$MVN_PROJECT_MODULEID" ]; then
+ upload_files_of_extension yaml
+ else
+ upload_files_of_extension yaml "$MVN_PROJECT_MODULEID"
+ fi
;;
*)
echo "==> unprocessed phase"