summaryrefslogtreecommitdiffstats
path: root/dgbuilder/svclogic
diff options
context:
space:
mode:
Diffstat (limited to 'dgbuilder/svclogic')
-rwxr-xr-xdgbuilder/svclogic/copy_xml.sh4
-rw-r--r--dgbuilder/svclogic/dg.xml2
-rw-r--r--dgbuilder/svclogic/lib/antlr4-4.5.1.jarbin0 -> 1478697 bytes
-rw-r--r--dgbuilder/svclogic/lib/commons-lang3-3.1.jarbin0 -> 315805 bytes
-rw-r--r--dgbuilder/svclogic/lib/mysql-connector-java-5.1.31.jarbin0 -> 964879 bytes
-rw-r--r--dgbuilder/svclogic/lib/slf4j-api-1.6.1.jarbin0 -> 25496 bytes
-rw-r--r--dgbuilder/svclogic/lib/slf4j-simple-1.7.5.jarbin0 -> 10680 bytes
-rw-r--r--dgbuilder/svclogic/lib/sli-common.jarbin0 -> 489557 bytes
-rwxr-xr-xdgbuilder/svclogic/load_dg1
-rw-r--r--dgbuilder/svclogic/svclogic.properties5
-rwxr-xr-xdgbuilder/svclogic/svclogic.sh14
11 files changed, 26 insertions, 0 deletions
diff --git a/dgbuilder/svclogic/copy_xml.sh b/dgbuilder/svclogic/copy_xml.sh
new file mode 100755
index 00000000..8b2cc4ee
--- /dev/null
+++ b/dgbuilder/svclogic/copy_xml.sh
@@ -0,0 +1,4 @@
+dt=$(date +'%m%d%Y_%H%M%S')
+mv ~/dg_xml/dg.xml ~/dg_xml/dg_${dt}.xml
+cp $(ls -ltr /home/users/schinthakayala/nodered/production/flowDesigner/users/sheshi/xml/*.xml|tail -1|awk '{print $NF}') ~/dg_xml/dg.xml
+echo "copied the latest DG"
diff --git a/dgbuilder/svclogic/dg.xml b/dgbuilder/svclogic/dg.xml
new file mode 100644
index 00000000..e8e101eb
--- /dev/null
+++ b/dgbuilder/svclogic/dg.xml
@@ -0,0 +1,2 @@
+<service-logic xmlns='http://www.openecomp.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.openecomp.org/sdnc/svclogic ./svclogic.xsd' module='ModuleName' version='1.0.0'><method rpc='rpcName' mode='sync'>
+</method></service-logic>
diff --git a/dgbuilder/svclogic/lib/antlr4-4.5.1.jar b/dgbuilder/svclogic/lib/antlr4-4.5.1.jar
new file mode 100644
index 00000000..81039db1
--- /dev/null
+++ b/dgbuilder/svclogic/lib/antlr4-4.5.1.jar
Binary files differ
diff --git a/dgbuilder/svclogic/lib/commons-lang3-3.1.jar b/dgbuilder/svclogic/lib/commons-lang3-3.1.jar
new file mode 100644
index 00000000..a85e539b
--- /dev/null
+++ b/dgbuilder/svclogic/lib/commons-lang3-3.1.jar
Binary files differ
diff --git a/dgbuilder/svclogic/lib/mysql-connector-java-5.1.31.jar b/dgbuilder/svclogic/lib/mysql-connector-java-5.1.31.jar
new file mode 100644
index 00000000..26864e49
--- /dev/null
+++ b/dgbuilder/svclogic/lib/mysql-connector-java-5.1.31.jar
Binary files differ
diff --git a/dgbuilder/svclogic/lib/slf4j-api-1.6.1.jar b/dgbuilder/svclogic/lib/slf4j-api-1.6.1.jar
new file mode 100644
index 00000000..f1f4fdd2
--- /dev/null
+++ b/dgbuilder/svclogic/lib/slf4j-api-1.6.1.jar
Binary files differ
diff --git a/dgbuilder/svclogic/lib/slf4j-simple-1.7.5.jar b/dgbuilder/svclogic/lib/slf4j-simple-1.7.5.jar
new file mode 100644
index 00000000..eca11dd4
--- /dev/null
+++ b/dgbuilder/svclogic/lib/slf4j-simple-1.7.5.jar
Binary files differ
diff --git a/dgbuilder/svclogic/lib/sli-common.jar b/dgbuilder/svclogic/lib/sli-common.jar
new file mode 100644
index 00000000..beacbe7a
--- /dev/null
+++ b/dgbuilder/svclogic/lib/sli-common.jar
Binary files differ
diff --git a/dgbuilder/svclogic/load_dg b/dgbuilder/svclogic/load_dg
new file mode 100755
index 00000000..e13745b2
--- /dev/null
+++ b/dgbuilder/svclogic/load_dg
@@ -0,0 +1 @@
+/home/users/schinthakayala/dg_xml/svclogic.sh load /home/users/schinthakayala/dg_xml/dg.xml /home/users/schinthakayala/dg_xml/svclogic.properties
diff --git a/dgbuilder/svclogic/svclogic.properties b/dgbuilder/svclogic/svclogic.properties
new file mode 100644
index 00000000..69ffd84c
--- /dev/null
+++ b/dgbuilder/svclogic/svclogic.properties
@@ -0,0 +1,5 @@
+org.openecomp.sdnc.sli.dbtype = jdbc
+org.openecomp.sdnc.sli.jdbc.url = jdbc:mysql://dbhost:3306/sdnctl
+org.openecomp.sdnc.sli.jdbc.database = sdnctl
+org.openecomp.sdnc.sli.jdbc.user = sdnctl
+org.openecomp.sdnc.sli.jdbc.password = gamma
diff --git a/dgbuilder/svclogic/svclogic.sh b/dgbuilder/svclogic/svclogic.sh
new file mode 100755
index 00000000..b54e521b
--- /dev/null
+++ b/dgbuilder/svclogic/svclogic.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+#echo "PROJECT_HOME:$PROJECT_HOME"
+
+MYSQL_JDBC_DRIVER=${MYSQL_JDBC_DRIVER:-$PROJECT_HOME/svclogic/lib/mysql-connector-java-5.1.31.jar}
+JARDIR="$PROJECT_HOME/svclogic/lib"
+#JARDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+
+CLASSPATH=$CLASSPATH:$MYSQL_JDBC_DRIVER
+for jar in $JARDIR/*.jar
+do
+ CLASSPATH=$CLASSPATH:${jar}
+done
+#echo "CLASSPATH is ${CLASSPATH}"
+java -cp ${CLASSPATH}:${MYSQL_JDBC_DRIVER}:${SLI_COMMON_JAR} org.openecomp.sdnc.sli.SvcLogicParser $*