forked from ArcBees/GWTP
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrelease-zip.sh
More file actions
executable file
·57 lines (45 loc) · 1.51 KB
/
release-zip.sh
File metadata and controls
executable file
·57 lines (45 loc) · 1.51 KB
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
#/bin/sh
# Zip GWTP Jars
# This will create zip file of the GWTP library jars and put it in the ./distribution/downloads folder.
# Editable
GWTPVER=0.8-SNAPSHOT
REPO=~/.m2/repository/com/gwtplatform
# Don't Edit Below *********
echo "Started"
echo "Do no use control-c"
CURRENTDIR=`pwd`
DISTRIBUTION=$CURRENTDIR/target/distribution
ZIPDIR=$DISTRIBUTION/downloads
# Clean House
# Don't delete distribution if deploying to a repository
mvn clean
mkdir target
mkdir $DISTRIBUTION
mkdir $ZIPDIR
# Zip Samples
zip -r $ZIPDIR/gwtp-samples-$GWTPVER.zip gwtp-samples -x "*/.*"
# Maven Building
mvn install -DskipTests
# Maven options to building
# Build local snapshots maven repository
#mvn -DaltDeploymentRepository=snapshot-repo::default::file:$DISTRIBUTION/snapshots clean deploy
# Build local release
#mvn -Prelease -DaltDeploymentRepository=release::default::file://$DISTRIBUTION/release clean deploy
# Copy and zip jars
cd $ZIPDIR
mkdir gwtp-all
cp $REPO/gwtp-all/$GWTPVER/*.jar gwtp-all
cd gwtp-all
zip ../gwtp-all-$GWTPVER.zip *.jar
cd ..
mkdir gwtp-separate
for d in `ls -d $REPO/gwtp-clients* $REPO/gwtp-crawler* $REPO/gwtp-dispatch* $REPO/gwtp-mvp* $REPO/gwtp-processors* $REPO/gwtp-tester*`; do cp $d/$GWTPVER/*.jar gwtp-separate/; done
cd gwtp-separate
zip ../gwtp-separate-$GWTPVER.zip *.jar
cd ..
rm -rf gwtp-samples/ gwtp-separate/ gwtp-all/
# Upload to github downloads
#mvn ghDownloads:upload
echo "\nSee the zips in folder: $DISTRIBUTION\n"
# TODO add readme in the zip about how to build it down the road.
echo "Finished"