Auto detect whether we have the jar already. Also, just create the directory whether it exists or not

This commit is contained in:
Joe Bowser 2012-05-29 14:34:14 -07:00
parent b77f1cbff8
commit 7d0cc5837d

View File

@ -38,11 +38,13 @@ fi
# update the cordova-android framework for the desired target
android update project --target $TARGET --path ./framework
# Use curl to get the jar (TODO: Support Apache Mirrors)
curl -OL http://mirror.symnds.com/software/Apache//commons/codec/binaries/commons-codec-1.6-bin.zip
unzip commons-codec-1.6-bin.zip
mkdir ./framework/libs
cp commons-codec-1.6/commons-codec-1.6.jar ./framework/libs/
if [ ! -e ./framework/libs/commons-codec-1.6.jar ]; then
# Use curl to get the jar (TODO: Support Apache Mirrors)
curl -OL http://mirror.symnds.com/software/Apache//commons/codec/binaries/commons-codec-1.6-bin.zip
unzip commons-codec-1.6-bin.zip
mkdir -p ./framework/libs
cp commons-codec-1.6/commons-codec-1.6.jar ./framework/libs/
fi
# compile cordova.js and cordova.jar
cd ./framework && ant jar && cd ../