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/07/14 00:47:46 UTC

webworks commit: [CB-962] - re-fix for how bb creates new project and permissions for the cordova scripts

Updated Branches:
  refs/heads/master 500b60f79 -> adf5f56d6


[CB-962] - re-fix for how bb creates new project and permissions for the cordova scripts


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

Branch: refs/heads/master
Commit: adf5f56d628113770b1f412fb5ecf3473df0ed7e
Parents: 500b60f
Author: Tim Kim <ti...@nitobi.com>
Authored: Fri Jul 13 15:47:37 2012 -0700
Committer: Tim Kim <ti...@nitobi.com>
Committed: Fri Jul 13 15:47:37 2012 -0700

----------------------------------------------------------------------
 bin/create |    3 ---
 build.xml  |    6 ++++++
 2 files changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/blob/adf5f56d/bin/create
----------------------------------------------------------------------
diff --git a/bin/create b/bin/create
index 0d2a720..2ae66e2 100755
--- a/bin/create
+++ b/bin/create
@@ -79,9 +79,6 @@ else
 	cp -r $BUILD_PATH/sample/. $PROJECT_PATH
 fi
 
-# 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 ..."
 sed -i '' -e "s/__NAME__/${APPNAME}/g" $MANIFEST_PATH

http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/blob/adf5f56d/build.xml
----------------------------------------------------------------------
diff --git a/build.xml b/build.xml
index 2f60ea3..4a45756 100644
--- a/build.xml
+++ b/build.xml
@@ -99,6 +99,9 @@
             <fileset dir="${template.project.dir}" />
         </copy>
         
+        <!-- change file permission for cordova scripts because ant copy doesn't preserve file permissions -->
+        <chmod dir="${template.project.dir}/cordova" perm="700" includes="*"/>
+        
         <!-- update project files to reference cordova.x.x.x.js -->
         <replaceregexp match="cordova\.js" replace="${js.basename}" byline="true">
             <fileset file="${project.path}/www/index.html" />
@@ -151,6 +154,9 @@ Getting Started:
             <fileset dir="${template.dist.dir}" />
         </copy>
         
+        <!-- change file permission for cordova scripts because ant copy doesn't preserve file permissions -->
+        <chmod dir="${dist.path}/sample/cordova" perm="700" includes="*" />
+        
         <!-- copy cordova.jar -->
         <copy todir="${dist.www.path}/ext">
             <fileset dir="${build.dir}/${jar.path}" />