diff options
author | Patrick Brady <pb071s@att.com> | 2017-10-30 12:00:38 -0700 |
---|---|---|
committer | Patrick Brady <pb071s@att.com> | 2017-10-30 13:19:14 -0700 |
commit | bd67a55485e0a151e4dae305165abab7e3ccf6cd (patch) | |
tree | 24fa0b504d3da4f06b11004e780609301081b493 /platform-logic/installer | |
parent | a014eae4c957729b8578043df73a68456d63ae60 (diff) |
Updating dg-loader jar download
Change-Id: I78141c7b8663dab68cca1b0d34737d73043096ea
Signed-off-by: Patrick Brady <pb071s@att.com>
Issue-id: APPC-287
Diffstat (limited to 'platform-logic/installer')
-rw-r--r-- | platform-logic/installer/src/main/scripts/install-converted-dgs.sh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/platform-logic/installer/src/main/scripts/install-converted-dgs.sh b/platform-logic/installer/src/main/scripts/install-converted-dgs.sh index 5047a68..f787aca 100644 --- a/platform-logic/installer/src/main/scripts/install-converted-dgs.sh +++ b/platform-logic/installer/src/main/scripts/install-converted-dgs.sh @@ -30,6 +30,9 @@ export APPC_HOME=${APPC_HOME:-/opt/openecomp/appc} # SVCLOGIC_DIR env variable points to /opt/openecomp/appc/svclogic export SVCLOGIC_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )" +#Path to the dg-loader jar file +export DG_LOADER=${APPC_HOME}/data/dg-loader-provider-jar-with-dependencies.jar + # Check if the JSON Directory exists under the env. variable defined export DG_JSON_DIR=${SVCLOGIC_DIR}/graphs/appc/json/dg-loader-dgs echo "Processing DG JSON directory : ${DG_JSON_DIR}" @@ -39,19 +42,17 @@ then exit 1 fi -# Temporarily use wget to download the JAR needed to execute the dg-loader actions below (NEEDS TO GET THE JAR WITH DEPENDENCIES) -wget -P ${SVCLOGIC_DIR}/lib https://nexus.onap.org/content/groups/staging/org/openecomp/appc/plugins/dg-loader-provider/1.1.0/dg-loader-provider-1.1.0.jar cd ${DG_JSON_DIR} mkdir -p ${DG_JSON_DIR}/converted-xml # Generate XML DGs from JSON DGs -$JAVA_HOME/bin/java -cp ${SVCLOGIC_DIR}/lib/dg-loader-jar-with-dependencies.jar org.openecomp.sdnc.dg.loader.DGXMLGenerator ${DG_JSON_DIR} ${DG_JSON_DIR}/converted-xml +$JAVA_HOME/bin/java -cp ${DG_LOADER} org.openecomp.sdnc.dg.loader.DGXMLGenerator ${DG_JSON_DIR} ${DG_JSON_DIR}/converted-xml # Load converted XML DGs to the SVC_LOGIC DB in the MySQL Docker Container -$JAVA_HOME/bin/java -cp ${SVCLOGIC_DIR}/lib/dg-loader-jar-with-dependencies.jar org.openecomp.sdnc.dg.loader.DGXMLLoad ${DG_JSON_DIR}/converted-xml ${APPC_HOME}/data/properties/dblib.properties +$JAVA_HOME/bin/java -cp ${DG_LOADER} org.openecomp.sdnc.dg.loader.DGXMLLoad ${DG_JSON_DIR}/converted-xml ${APPC_HOME}/data/properties/dblib.properties # Activate converted XML DGs to the SVC_LOGIC DB in the MySQL Docker Container -$JAVA_HOME/bin/java -cp ${SVCLOGIC_DIR}/lib/dg-loader-jar-with-dependencies.jar org.openecomp.sdnc.dg.loader.DGXMLActivate ${DG_JSON_DIR}/dg_activate.txt ${APPC_HOME}/data/properties/dblib.properties +$JAVA_HOME/bin/java -cp ${DG_LOADER} org.openecomp.sdnc.dg.loader.DGXMLActivate ${DG_JSON_DIR}/dg_activate.txt ${APPC_HOME}/data/properties/dblib.properties exit 0 |