-
Notifications
You must be signed in to change notification settings - Fork 3
/
install.sh
executable file
·34 lines (29 loc) · 1 KB
/
install.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
#!/bin/bash
NC='\033[0m'
RED='\033[0;31m'
GREEN='\033[0;32m'
ORANGE='\033[0;33m'
BLUE='\033[0;34m'
WHITE='\033[0;37m'
export BCO_DIST="${BCO_DIST:=$HOME/usr/}"
if [ ! -d ${BCO_DIST} ]; then
echo "No bco distribution found at: ${BCO_DIST}"
echo 'Please define the distribution installation target directory by setting the $BCO_DIST environment variable.'
exit 255
fi
APP_NAME='bcozy'
APP_NAME=${BLUE}${APP_NAME}${NC}
echo -e "=== ${APP_NAME} project ${WHITE}cleanup${NC}" &&
./mvnw clean --quiet $@ &&
echo -e "=== ${APP_NAME} project ${WHITE}installation${NC}" &&
./mvnw install \
-DassembleDirectory=${BCO_DIST} \
-DskipTests=true \
-Dmaven.test.skip=true \
-Dlicense.skipAddThirdParty=true \
-Dlicense.skipUpdateProjectLicense=true \
-Dlicense.skipDownloadLicenses \
-Dlicense.skipCheckLicense=true \
-Dmaven.license.skip=true \
--quiet $@ &&
echo -e "=== ${APP_NAME} was ${GREEN}successfully${NC} installed to ${WHITE}${BCO_DIST}${NC}"