forked from MonALISA-CIT/apmon_java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_apmon.sh
More file actions
executable file
·38 lines (27 loc) · 761 Bytes
/
build_apmon.sh
File metadata and controls
executable file
·38 lines (27 loc) · 761 Bytes
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
38
#!/bin/sh
if ! [ -d lib ]; then
mkdir lib
fi
if [ -d /usr/lib/jvm/default-java/include ]; then
export JAVA_HOME=${JAVA_HOME:=/usr/lib/jvm/default-java}
fi
cd src/apmon/util
if ./compile.sh; then
mv libnativeapm.so ../../../lib
cd ../../..
else
echo "There was an error while building the native library"
cd ../../..
exit 1
fi
CRT_DIR=`pwd`
export CLASSPATH=$CLASSPATH:${CRT_DIR}
mkdir -p build/classes
cd src
find apmon -name \*.java | xargs javac -source 8 -target 8 -g -d ../build/classes
mkdir -p ../build/classes/apmon/lisa_host/Windows
cp apmon/lisa_host/Windows/*.dll ../build/classes/apmon/lisa_host/Windows/
cd ../build/classes
find . -type f | xargs jar cf apmon.jar
mv apmon.jar ../../lib
#javac examples/*.java