-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall-dependencies.sh
22 lines (18 loc) · 1.24 KB
/
install-dependencies.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env bash
# prompt for version
read -p "Enter the NDDS version: " NDDS_VERSION
# define version
export NDDS_VERSION
# copy needed idl from SDK
cp $NDDSHOME/resource/idl/dds_rtf2_dcps.idl ./src/main/idl/
cp $NDDSHOME/resource/idl/monitoring.idl ./src/main/idl/
cp $NDDSHOME/resource/idl/RecordingServiceMonitoring.idl ./src/main/idl/
cp $NDDSHOME/resource/idl/RoutingServiceMonitoring.idl ./src/main/idl/
cp $NDDSHOME/resource/idl/ServiceAdmin.idl ./src/main/idl/
cp $NDDSHOME/resource/idl/ServiceCommon.idl ./src/main/idl/
cp $NDDSHOME/resource/idl/ServiceMonitoring.idl ./src/main/idl/
# install needed dependencies into local maven
./mvnw install:install-file -Dfile=$NDDSHOME/lib/java/nddsjava.jar -DgroupId=com.rti -DartifactId=nddsjava -Dversion=$NDDS_VERSION -Dpackaging=jar
./mvnw install:install-file -Dfile=$NDDSHOME/lib/java/rticonnextmsg.jar -DgroupId=com.rti -DartifactId=rticonnextmsg -Dversion=$NDDS_VERSION -Dpackaging=jar
./mvnw install:install-file -Dfile=$NDDSHOME/lib/java/rtiroutingservice.jar -DgroupId=com.rti -DartifactId=rtiroutingservice -Dversion=$NDDS_VERSION -Dpackaging=jar
./mvnw install:install-file -Dfile=$NDDSHOME/lib/java/rtirsadapter.jar -DgroupId=com.rti -DartifactId=rtirsadapter -Dversion=$NDDS_VERSION -Dpackaging=jar