-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclient
More file actions
26 lines (19 loc) · 677 Bytes
/
client
File metadata and controls
26 lines (19 loc) · 677 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
LIB_PATH="$(echo $(ls -d $PWD/KeyValueStore/lib/*) | tr ' ' ':')"
echo Using LIB_PATH: $LIB_PATH
find -name "*.java" > sources.txt
javac -classpath $LIB_PATH -d ./bin/ @sources.txt
PACKAGE_ROOT=$(echo "$dirs")
rm -f Manifest.mf
echo "Manifest-Version: 1.0" > Manifest.mf
echo "Main-Class: com.hvadoda1.keyvalstore.frontend.starter.StartKeyValueStoreFrontEnd" >> Manifest.mf
echo "Class-Path: $(echo $LIB_PATH | sed -r 's/:/\n /g')" >> Manifest.mf
echo "" >> Manifest.mf
#RES_DIR=$(find -name "resources")
#cp $RES_DIR/* ./bin
cd bin/
jar cmf ../Manifest.mf ../client.jar com/ #*.properties
cd ..
rm -f Manifest.mf
rm -f sources.txt
rm -rf bin
java -jar client.jar ${@}