Handle CR in pom property files 79/112579/2
authorJim Hahn <jrh3@att.com>
Fri, 11 Sep 2020 19:18:51 +0000 (15:18 -0400)
committerJim Hahn <jrh3@att.com>
Fri, 11 Sep 2020 22:07:57 +0000 (18:07 -0400)
Fixed deploy-artifacts to strip carriage returns from pom.properties
files before attempting to extract variables from them.
Switched to using 'sed' instead of dos2unix.

Issue-ID: POLICY-2823
Change-Id: I1114af13a3262e49b87fb270d5c78cda4de9e5c9
Signed-off-by: Jim Hahn <jrh3@att.com>
policy-management/src/main/server-gen/bin/deploy-artifact

index b142bcd..b25aaf9 100644 (file)
@@ -94,6 +94,7 @@ function init
     if [[ -n ${pomProperties} ]]; then
         jar xf "${jar}" "${pomProperties}"
         WORKING_POM_PROPERTIES=$(realpath ${pomProperties})
+        sed -i 's/\r$//' "${WORKING_POM_PROPERTIES}"
         source "${WORKING_POM_PROPERTIES}"
         echo "${artifact}: sourcing in ${WORKING_POM_PROPERTIES}"
     else