summaryrefslogtreecommitdiffstats
path: root/platform-logic/src/main/scripts
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2017-09-20 18:00:14 -0400
committerDan Timoney <dtimoney@att.com>2017-09-20 18:00:14 -0400
commit7629aef322c86ae2824d431f444267b46c16af7d (patch)
tree9cd28886bb59531df4f89e7526c7cd172a854b33 /platform-logic/src/main/scripts
parente028d9dc9d4283b0a8cb3dcbd902864ba5cab05d (diff)
Update DG namepaces - fixed
Fixed script src/main/scripts/updateDgNamespace.sh to update namespace references in DG XML files, and used that script to update all DG XMLs. Change-Id: Idc9867007fbf46e17b336ed8bb33fdd08670a6ea Issue-ID: SDNC-95 Signed-off-by: Dan Timoney <dtimoney@att.com> Former-commit-id: fafd0e6f7408803ae2a1fc0bef2a8a06cc08f2e6
Diffstat (limited to 'platform-logic/src/main/scripts')
-rwxr-xr-xplatform-logic/src/main/scripts/updateDgNamespace.sh3
-rwxr-xr-xplatform-logic/src/main/scripts/updatePackages.sh21
2 files changed, 22 insertions, 2 deletions
diff --git a/platform-logic/src/main/scripts/updateDgNamespace.sh b/platform-logic/src/main/scripts/updateDgNamespace.sh
index cb93c6be..dde88911 100755
--- a/platform-logic/src/main/scripts/updateDgNamespace.sh
+++ b/platform-logic/src/main/scripts/updateDgNamespace.sh
@@ -2,8 +2,7 @@
updateFile() {
sed -i .orig -e '
-s/\(xmlns=.\)http:\/\/www\.onap\.org\/sdnctl\/svclogic/\1http:\/\/www\.onap\.org\/sdnc\/svclogic/g
-s/\(xsi:schemaLocation=.\)http:\/\/www\.openecomp\.org\/sdnctl\/svclogic/\1http:\/\/www\.onap\.org\/sdnc\/svclogic/g
+s/openecomp.org/onap.org/g
' $1
}
diff --git a/platform-logic/src/main/scripts/updatePackages.sh b/platform-logic/src/main/scripts/updatePackages.sh
new file mode 100755
index 00000000..2fd0e363
--- /dev/null
+++ b/platform-logic/src/main/scripts/updatePackages.sh
@@ -0,0 +1,21 @@
+#! /bin/bash
+
+updateFile() {
+sed -i .orig -e '
+s/\(plugin=.\)org.openecomp.sdnc.\(prop\)/\org.onap.ccsdk.sli.plugins.\2/g
+s/\(plugin=.\)org.openecomp.sdnc.\(ra\)/\1org.onap.ccsdk.sli.adaptors.\2/g
+s/\(plugin=.\)org.openecomp.sdnc.\(restapicall\)/\1org.onap.ccsdk.sli.plugins.\2/g
+s/\(plugin=.\)org.openecomp.sdnc.sli.\(aai\)/\1org.onap.ccsdk.sli.adaptors.\2/g
+s/\(plugin=.\)org.openecomp.sdnc.sli.common/\1org.onap.ccsdk.sli.core.sli/g
+s/\(plugin=.\)org.openecomp.sdnc.\(sli.provider\)/\1org.onap.ccsdk.sli.core.\2/g
+s/\(plugin=\\\{0,1\}.\)com.att.sdnctl.\(sli.recording\)/\1org.openecomp.sdnc.\2/g
+s/\(plugin=.\)org.openecomp.sdnc.sli.\(resource.mdsal\)/\1org.onap.ccsdk.sli.adaptors.\2/g
+s/\(plugin=.\)org.openecomp.sdnc.sli\(resource.sql\)/\org.onap.ccsdk.sli.adaptors.\2/g
+s/\(plugin=.\)org.openecomp.sdnc.sli.SliPluginUtils/\1org.onap.ccsdk.sli.core.slipluginutils/g
+' $1
+}
+
+for file in $@
+do
+ updateFile $file
+done