forked from usnistgov/iheos-toolkit2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-release-sequoia.sh.orig
executable file
·48 lines (36 loc) · 1.09 KB
/
build-release-sequoia.sh.orig
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
#!/bin/bash
#
# Finalize WAR
# add javadocs and site documentation
# insert my toolkit.properties file
#
# This script is generic. If it is named build.vm.sh it will use
# build.vm.stuff as the update content directory
BASEDIR=$(dirname $0)
if [ $BASEDIR='.' ];
then
BASEDIR=$(pwd)
fi
echo "BASEDIR is $BASEDIR"
SCRIPTNAME=$(basename $0 .sh)
cd $BASEDIR
mvn -o clean package -DskipTests -Dmaven.test.skip=true
cd $BASEDIR/xdstools2/target
WARNAME=$(basename *.war .war)
rm -rf $BASEDIR/xdstools2/target/$WARNAME/javadoc
#mkdir $BASEDIR/xdstools2/target/$WARNAME/javadoc
cd $BASEDIR
bash $BASEDIR/genapidoc.sh $BASEDIR/xdstools2/target/$WARNAME/javadoc
cd $BASEDIR/xdstools2
// warning - if -o is present then it runs much much faster
// but the first time you run it on a machine -o must be removed
// so that the necessary plugins can be downloaded
mvn -o site
cd $BASEDIR/xdstools2/target
rm -rf $WARNAME/site
mv site $WARNAME
cd $BASEDIR/xdstools2/target/$WARNAME
rm ../$WARNAME.war
jar cf ../$WARNAME.war *
cd ${BASEDIR}/${SCRIPTNAME}.stuff
jar uf $BASEDIR/xdstools2/target/${WARNAME}.war WEB-INF