incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tim...@apache.org
Subject webworks commit: [CB-1493] - updated links to use maven instead of sourceforge
Date Thu, 20 Sep 2012 21:00:43 GMT
Updated Branches:
  refs/heads/master 533a6c5eb -> 000e28c94


[CB-1493] - updated links to use maven instead of sourceforge


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/000e28c9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/tree/000e28c9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/diff/000e28c9

Branch: refs/heads/master
Commit: 000e28c94f1901f075508180129656e9bd185284
Parents: 533a6c5
Author: Tim Kim <tim.kim@nitobi.com>
Authored: Thu Sep 20 14:00:36 2012 -0700
Committer: Tim Kim <tim.kim@nitobi.com>
Committed: Thu Sep 20 14:00:36 2012 -0700

----------------------------------------------------------------------
 bin/create    |    7 ++-----
 bin/create.js |   11 +++--------
 2 files changed, 5 insertions(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/blob/000e28c9/bin/create
----------------------------------------------------------------------
diff --git a/bin/create b/bin/create
index e29ce92..2599a68 100755
--- a/bin/create
+++ b/bin/create
@@ -70,12 +70,9 @@ 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
+        curl -OL http://central.maven.org/maven2/ant-contrib/ant-contrib/1.0b3/ant-contrib-1.0b3.jar
&> /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
+        mv ant-contrib-1.0b3.jar "$BUILD_PATH"/bin/templates/project/lib/ant-contrib
     fi
     
 	echo "Building cordova-$VERSION.jar and cordova-$VERSION.js ..."

http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/blob/000e28c9/bin/create.js
----------------------------------------------------------------------
diff --git a/bin/create.js b/bin/create.js
index 1b823b7..8b5326d 100644
--- a/bin/create.js
+++ b/bin/create.js
@@ -45,9 +45,9 @@ function replaceInFile(filename, regexp, replacement) {
 function downloadAntContrib(){
     if (!fso.FileExists(ROOT + '\\bin\\templates\\project\\lib\\ant-contrib\\ant-contrib-1.0b3.jar'))
{
       // We need the .jar
-      var url = 'http://softlayer.dl.sourceforge.net/project/ant-contrib/ant-contrib/1.0b3/ant-contrib-1.0b3-bin.zip';
-      var libsPath = ROOT + '\\bin\\templates\\project\\lib';
-      var savePath = libsPath + '\\ant-contrib-1.0b3-bin.zip';
+      var url = 'http://central.maven.org/maven2/ant-contrib/ant-contrib/1.0b3/ant-contrib-1.0b3.jar';
+      var libsPath = ROOT + '\\bin\\templates\\project\\lib\\ant-contrib';
+      var savePath = libsPath + '\\ant-contrib-1.0b3.jar';
       if (!fso.FileExists(savePath)) {
         if(!fso.FolderExists(libsPath)) {
             fso.CreateFolder(libsPath);
@@ -72,11 +72,6 @@ function downloadAntContrib(){
       var source = app.NameSpace(savePath).Items();
       var target = app.NameSpace(libsPath);
       target.CopyHere(source, 256);
-         
-      // Clean up
-      fso.DeleteFile(libsPath + '\\ant-contrib-1.0b3-bin.zip');
-      fso.DeleteFolder(libsPath + '\\ant-contrib\\docs', true);
-      fso.DeleteFolder(libsPath + '\\ant-contrib\\lib', true);
     }
 }
 function exec(s, output) {


Mime
View raw message