forked from dice-group/gerbil
-
Notifications
You must be signed in to change notification settings - Fork 0
/
start.sh
executable file
·35 lines (28 loc) · 1.16 KB
/
start.sh
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
#!/bin/bash
echo "Checking dependencies..."
file="gerbil_data/gerbil_data.zip"
url="http://github.com/AKSW/gerbil/releases/download/v1.0.0/gerbil_data.zip"
mkdir -p "gerbil_data" || exit 1
if [ ! -f "$file" ]; then
echo "Downloading dependencies ... ($url)"
curl --retry 4 -o "$file" "$url"
if [ ! -f "$file" ]; then
echo "Couldn't downloading dependency data: $file"
else
echo "Extracting dependencies ... "
unzip "$file"
fi
fi
echo "Checking properties files..."
dir="src/main/properties"
file="$dir/gerbil_keys.properties"
if [ ! -f "$file" ]; then
echo "Creating empty $file file"
mkdir -p "$dir";
echo "##############################################################################" > $file
echo "# This is the properties file contains our keys for several annotator web #" >> $file
echo "# services. #" >> $file
echo "# IT SHOULD NOT BE DISTRIBUTED!!! #" >> $file
echo "##############################################################################" >> $file
fi
mvn clean tomcat:run -Dmaven.tomcat.port=1234