You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ti...@apache.org on 2012/06/27 00:42:47 UTC

webworks commit: Re-fixed cordova scripts being able to execute in bb

Updated Branches:
  refs/heads/master 4e783f819 -> 1449762f7


Re-fixed cordova scripts being able to execute in bb


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

Branch: refs/heads/master
Commit: 1449762f7ea4f8e0df5ddb8b3355785218aaf498
Parents: 4e783f8
Author: Tim Kim <ti...@nitobi.com>
Authored: Tue Jun 26 15:42:41 2012 -0700
Committer: Tim Kim <ti...@nitobi.com>
Committed: Tue Jun 26 15:42:41 2012 -0700

----------------------------------------------------------------------
 bin/create |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/blob/1449762f/bin/create
----------------------------------------------------------------------
diff --git a/bin/create b/bin/create
index 80c1465..fe91d1c 100755
--- a/bin/create
+++ b/bin/create
@@ -71,7 +71,8 @@ echo "Building cordova-$VERSION.jar and cordova-$VERSION.js ..."
 # copy project template
 echo "Copying assets and resources ..."
 cp -r $BUILD_PATH/dist/sample/. $PROJECT_PATH
-chmod 700 $PROJECT_PATH/cordova/*
+# re-copy over cordova scripts because ant doesn't preserve file modes when copying
+cp -r -p $BUILD_PATH/bin/templates/project/cordova $PROJECT_PATH
 
 # interpolate the app name into config.xml
 echo "Updating config.xml ..."