blob: ca115b0f746b71c14ee7967e76fe84df7c3294a2 (
plain)
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
|
#!/bin/bash
# Installs jvpp jars from vpp build dir to local maven repository.
# Use before building hc2vpp to make sure it matches your locally-built vpp.
# Not needed when using honeycomb package from nexus.fd.io
# (compatible vpp version is given as package dependency).
DIR_NAME=$(dirname $0)
source ${DIR_NAME}/common.sh
# Set VPP_DIR if not defined
DEFAULT_VPP_DIR="$HOME/vpp"
VPP_DIR=${VPP_DIR:-"$DEFAULT_VPP_DIR"}
echo "Installing jvpp jars from VPP_DIR=$VPP_DIR"
JARS="$(find "$VPP_DIR/build-root/install-vpp-native/vpp/share/java/" -type f -iname 'jvpp-*.jar')"
echo "Found:"
echo "$JARS"
JVPP_VERSION=`$DIR_NAME/version`
echo "Target jvpp version: $JVPP_VERSION"
for i in ${JARS}
do
install_jvpp_jar "$i" "JVPP_VERSION"
done
|