-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpvaify.sh
More file actions
executable file
·38 lines (32 loc) · 1.06 KB
/
pvaify.sh
File metadata and controls
executable file
·38 lines (32 loc) · 1.06 KB
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
30
31
32
33
34
35
36
37
#!/bin/bash
# Check for distribution jar
JAR=`echo pvaify-*.jar`
if [ ! -r $JAR ]
then
# Check for maven-built jar
JAR=`echo target/pvaify-*.jar`
fi
if [ -r $JAR ]
then
java -jar $JAR "$@"
else
# Use IDE-provided classes and dependencies
echo "Using development version"
CP="target/classes"
CP+=":../phoebus/core/framework/target/classes"
CP+=":../phoebus/core/pv/target/classes"
CP+=":../phoebus/core/pv-ca/target/classes"
CP+=":../phoebus/core/pva/target/classes"
LIB=`echo ../phoebus/dependencies/phoebus-target/target/lib/jca-[0-9.]*.jar`
CP+=":$LIB"
LIB=`echo ../phoebus/dependencies/phoebus-target/target/lib/vtype-[0-9.]*.jar`
CP+=":$LIB"
LIB=`echo ../phoebus/dependencies/phoebus-target/target/lib/epics-util-[0-9.]*.jar`
CP+=":$LIB"
LIB=`echo ../phoebus/dependencies/phoebus-target/target/lib/reactive-streams-[0-9.]*.jar`
CP+=":$LIB"
LIB=`echo ../phoebus/dependencies/phoebus-target/target/lib/rxjava-[0-9.]*.jar`
CP+=":$LIB"
echo $CP
java -cp $CP org.phoebus.pvaify.Main "$@"
fi