fix sipgate
[andGMXsms.git] / buildjar.sh
blob62c0a78ac00e2533399136c8c2c7a5051f8c7178
1 #! /bin/sh
3 cd connectors/common/
5 if [ "$1" == "dev" ] ; then
6 # just jar files
7 ant clean
8 ant debug || exit -1
9 jar cvf lib/WebSMS-Connector-API.jar -C bin/classes/ de/ub0r/android/websms/connector/common/
10 else
11 # build release version. the key does not matter at all. but is used for consistent handling
12 ant clean
14 # comment out all Log.d and Log.v
15 ../../preDeploy.sh $PWD/src/de/ub0r/android/websms/connector/common/
17 ant release < ../../../release.ks.pw || exit -1
19 # remove comments for Log.d and Log.v
20 ../../postDeploy.sh $PWD/src/de/ub0r/android/websms/connector/common/
22 find bin/ -name package-info.class -exec rm {} \;
23 jar cvf lib/WebSMS-Connector-API.jar -C bin/classes/ de/ub0r/android/websms/connector/common/
24 [ -n "$1" ] && cp lib/WebSMS-Connector-API.jar ../../connectors/example/libs/
27 if [ -d "/home/flx/public_html/websms/" ] ; then
28 ant debug
29 cd -
30 ./builddoc.sh
31 cd -
34 ant clean