From 96babb945f19f1ead04da61f0d627be3e028defc Mon Sep 17 00:00:00 2001 From: "Singal, Kapil (ks220y)" Date: Fri, 6 Mar 2020 16:40:25 -0500 Subject: [PATCH] Fixing updateParentVersion.sh 1) Add command to keep empty line between header and project tag in pom.xml 2) Adding param to keep CDATA value as is. Issue-ID: CCSDK-2164 Change-Id: Ic4babea86eb6d3f50d3674b7c8c829171cc13465 Signed-off-by: Singal, Kapil (ks220y) --- tools/updParentVersion.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/updParentVersion.sh b/tools/updParentVersion.sh index 8740a89c..28e5bdb7 100755 --- a/tools/updParentVersion.sh +++ b/tools/updParentVersion.sh @@ -16,7 +16,7 @@ cat < /tmp/rebase-pom.xslt xmlns:pom="http://maven.apache.org/POM/4.0.0" xmlns="http://maven.apache.org/POM/4.0.0" exclude-result-prefixes="pom"> - + @@ -39,3 +39,6 @@ then fi find $1 -name pom.xml -exec bash -c 'updatePom "$0" $1' '{}' \; + +#Adding single empty line before project tag if there is a header available +find $1 -name pom.xml -exec sed -i -n '$!N;s@-->\n\n\n