Utility script to rebuild RAMCloud Java bindings
Change-Id: Ic76a8d84fcaefc70381dbd7355e8eb36460502b5
diff --git a/build-ramcloud-java-bindings.sh b/build-ramcloud-java-bindings.sh
new file mode 100755
index 0000000..7f4dc6a
--- /dev/null
+++ b/build-ramcloud-java-bindings.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+# run this script, when RAMCloud java binding is updated
+
+set -x
+
+ONOS_HOME=~/ONOS
+RAMCLOUD_HOME=~/ramcloud
+
+# create ramcloud lib
+cp -p ${ONOS_HOME}/src/main/java/edu/stanford/ramcloud/JRamCloud.java ${HOME}/ramcloud/bindings/java/edu/stanford/ramcloud/
+cp -p ${ONOS_HOME}/src/main/cpp/edu_stanford_ramcloud_JRamCloud.cc ${HOME}/ramcloud/bindings/java/edu/stanford/ramcloud/
+cd ${HOME}/ramcloud/bindings/java/edu/stanford/ramcloud/
+javac JRamCloud.java
+./build_so.sh
+jar cvf ${RAMCLOUD_HOME}/bindings/java/RamCloud.jar ${RAMCLOUD_HOME}/bindings/java/edu/stanford/ramcloud/*.class