forked from apache/spark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcopy_jar.sh
executable file
·29 lines (21 loc) · 953 Bytes
/
copy_jar.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
# Copies the jars from the remoteBuf library into maven
# Required any time you rebuild remoteBuf
RMEM_DIR=./external/remotebuf
if ! [ -e $RMEM_DIR ]
then
echo "Remote Mem directory doesn't exist"
echo "Usage: ./copy_jar.sh /path/to/remotebuf/"
exit 1
fi
RMEM_JAR=${RMEM_DIR}/remoteMem.jar
JAVACPP_JAR=${RMEM_DIR}/javacpp/target/javacpp.jar
if [ ! -e ${RMEM_JAR} -o ! -e ${JAVACPP_JAR} ]
then
echo "Missing JARs (did you build them?)"
exit 1
fi
mvn install:install-file -DlocalRepositoryPath=rmemLib -DcreateChecksum=true -Dpackaging=jar -Dfile=${RMEM_JAR} -DgroupId=ucb.remotebuf -DartifactId=remoteMemCore -Dversion=0.1
mvn install:install-file -DlocalRepositoryPath=rmemLib -DcreateChecksum=true -Dpackaging=jar -Dfile=${JAVACPP_JAR} -DgroupId=org.bytedeco.javacpp -DartifactId=remoteMemCpp -Dversion=0.1
cp ${RMEM_DIR}/libRemoteBuf.so ./rmemLib/
cp ${RMEM_DIR}/ucb/remotebuf/linux-x86_64/libjniRemoteBuf.so ./rmemLib