-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake_dist.sh
More file actions
26 lines (24 loc) · 861 Bytes
/
make_dist.sh
File metadata and controls
26 lines (24 loc) · 861 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
#!/bin/bash
tomcat="apache-tomcat-8.0.30"
file="dist/$tomcat.zip"
version="0.0.1-SNAPSHOT"
adminapp="admin-user-manager-app"
DATE=$(date +%Y%m%d_%H%M%S)
if ! [ -f "$file" ]
then
cd dist &&
wget http://apache.panu.it/tomcat/tomcat-8/v8.0.30/bin/$tomcat.zip &&
unzip $tomcat.zip &&
cd ..
fi
rm -rf dist/$tomcat/webapps/* &&
cp conf/multitenancy.properties dist/$tomcat/conf/ &&
cd applications &&
cd wp5-utils && gradle build && cd .. &&
cd wp5-clients-utils && gradle build && cd .. &&
cd wp5 && gradle build && cp build/libs/wp5-$version.war.original ../../dist/$tomcat/webapps/ROOT.war && cd .. &&
cd $adminapp && gradle build && cp build/libs/$adminapp-$version.war.original ../../dist/$tomcat/webapps/$adminapp.war && cd .. &&
cd ../dist &&
mkdir -p db && rm -rf db/* &&
cp ../conf/postgreSql/schema/* ./db/ &&
zip -r supersede-bin-$DATE $tomcat db