incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bows...@apache.org
Subject [4/4] android commit: Auto detect whether we have the jar already. Also, just create the directory whether it exists or not
Date Tue, 29 May 2012 22:49:28 GMT
Auto detect whether we have the jar already.  Also, just create the directory whether it exists
or not


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/commit/7d0cc583
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/tree/7d0cc583
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/diff/7d0cc583

Branch: refs/heads/CordovaWebView
Commit: 7d0cc5837d8590c3c83a7fb4e3cc3f157606512f
Parents: b77f1cb
Author: Joe Bowser <bowserj@apache.org>
Authored: Tue May 29 14:34:14 2012 -0700
Committer: Joe Bowser <bowserj@apache.org>
Committed: Tue May 29 14:34:14 2012 -0700

----------------------------------------------------------------------
 bin/create |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/7d0cc583/bin/create
----------------------------------------------------------------------
diff --git a/bin/create b/bin/create
index 05393fe..736fa14 100755
--- a/bin/create
+++ b/bin/create
@@ -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 ../


Mime
View raw message