forked from gisgraphy/gisgraphy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
distgisgraphy.sh
executable file
·59 lines (50 loc) · 1.03 KB
/
distgisgraphy.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/bin/bash
cd `dirname ${BASH_SOURCE[0]}`
curDir=`pwd`
if [[ -e ../addressParser ]]
then
cd ../addressParser/
./generateSolution.sh ./config-template/file/
if [[ $? != 0 ]]
then
echo "can not build address parser"
exit 1
fi
cp target/export/addressParser-???.jar $curDir/data/libs/
cd $curDir
else
exit "address parser is not present"
fi
if [[ -e ../addressParser-http ]]
then
cd ../addressParser-http/
mvn clean install -Dmaven.test.skip
cp ./target/*.jar $curDir/data/libs/
cd $curDir
else
exit "address parser http connector is not present"
fi
if [[ -e ../extra/link.sh ]]
then
cd ../extra/
./link.sh
cd $curDir
else
exit "extra is not present"
fi
if [[ -e ../ws-billing ]]
then
cd ../ws-billing
mvn clean install -Dmaven.test.skip
cp ./target/*.jar $curDir/data/libs/
cd $curDir
else
exit "ws is not present"
fi
cd ../tools
./installall.sh
cd -
mvn clean compile war:war hibernate3:hbm2ddl assembly:assembly -Dmaven.test.skip -Dresetdb=false -Pgisgraphy
rm $curDir/data/libs/*
cd ../extra/
./delete.sh