Updated Branches: refs/heads/master c6040d8cf -> bf85a57de
[CB-1493] - removing jar file from src and added an auto downloader for that jar Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/commit/bf85a57d Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/tree/bf85a57d Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/diff/bf85a57d Branch: refs/heads/master Commit: bf85a57de83a76748d6b5727341c63eedd819193 Parents: c6040d8 Author: Tim Kim <tim....@nitobi.com> Authored: Mon Sep 17 17:42:22 2012 -0700 Committer: Tim Kim <tim....@nitobi.com> Committed: Mon Sep 17 17:42:22 2012 -0700 ---------------------------------------------------------------------- bin/create | 11 ++++ bin/templates/project/lib/ant-contrib/LICENSE.txt | 47 --------------- .../project/lib/ant-contrib/ant-contrib-1.0b3.jar | Bin 224277 -> 0 bytes 3 files changed, 11 insertions(+), 47 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/blob/bf85a57d/bin/create ---------------------------------------------------------------------- diff --git a/bin/create b/bin/create index afb78cf..e29ce92 100755 --- a/bin/create +++ b/bin/create @@ -67,6 +67,17 @@ MANIFEST_PATH="$PROJECT_PATH/www/config.xml" # compile cordova.js and cordova.jar if in source, ignore if in distribution if [ ! -e "$BUILD_PATH/www/ext/cordova-$VERSION.jar" ] && [ -d "$BUILD_PATH/framework" ] then + if [ ! -e "$BUILD_PATH"/bin/templates/project/lib/ant-contrib/ant-contrib-1.0b3.jar ]; then + echo "Downloading ant-contrib" + # Use curl to get the jar + curl -OL http://sourceforge.net/projects/ant-contrib/files/ant-contrib/1.0b3/ant-contrib-1.0b3-bin.zip &> /dev/null + unzip ant-contrib-1.0b3-bin.zip &> /dev/null + mkdir -p "$BUILD_PATH"/bin/templates/project/lib/ant-contrib + cp ant-contrib/ant-contrib-1.0b3.jar "$BUILD_PATH"/bin/templates/project/lib/ant-contrib + # cleanup yo + rm ant-contrib-1.0b3-bin.zip && rm -rf ant-contrib + fi + echo "Building cordova-$VERSION.jar and cordova-$VERSION.js ..." (cd "$BUILD_PATH" && "$ANT" dist &> /dev/null ) http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/blob/bf85a57d/bin/templates/project/lib/ant-contrib/LICENSE.txt ---------------------------------------------------------------------- diff --git a/bin/templates/project/lib/ant-contrib/LICENSE.txt b/bin/templates/project/lib/ant-contrib/LICENSE.txt deleted file mode 100644 index 4d8c2fb..0000000 --- a/bin/templates/project/lib/ant-contrib/LICENSE.txt +++ /dev/null @@ -1,47 +0,0 @@ -/* - * The Apache Software License, Version 1.1 - * - * Copyright (c) 2001-2003 Ant-Contrib project. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * 3. The end-user documentation included with the redistribution, if - * any, must include the following acknowlegement: - * "This product includes software developed by the - * Ant-Contrib project (http://sourceforge.net/projects/ant-contrib)." - * Alternately, this acknowlegement may appear in the software itself, - * if and wherever such third-party acknowlegements normally appear. - * - * 4. The name Ant-Contrib must not be used to endorse or promote products - * derived from this software without prior written permission. For - * written permission, please contact - * ant-contrib-develop...@lists.sourceforge.net. - * - * 5. Products derived from this software may not be called "Ant-Contrib" - * nor may "Ant-Contrib" appear in their names without prior written - * permission of the Ant-Contrib project. - * - * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE ANT-CONTRIB PROJECT OR ITS - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF - * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, - * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * ==================================================================== - */ http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/blob/bf85a57d/bin/templates/project/lib/ant-contrib/ant-contrib-1.0b3.jar ---------------------------------------------------------------------- diff --git a/bin/templates/project/lib/ant-contrib/ant-contrib-1.0b3.jar b/bin/templates/project/lib/ant-contrib/ant-contrib-1.0b3.jar deleted file mode 100644 index 0625376..0000000 Binary files a/bin/templates/project/lib/ant-contrib/ant-contrib-1.0b3.jar and /dev/null differ