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-965] - windows version of create script failing
Date Fri, 29 Jun 2012 20:41:08 GMT
Updated Branches:
  refs/heads/master 7f4beba5e -> 4454e40b9


[CB-965] - windows version of create script failing


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

Branch: refs/heads/master
Commit: 4454e40b9c6b0b6e0f29c4b786ead155e91a463d
Parents: 7f4beba
Author: Tim Kim <tim.kim@nitobi.com>
Authored: Fri Jun 29 13:35:31 2012 -0700
Committer: Tim Kim <tim.kim@nitobi.com>
Committed: Fri Jun 29 13:35:31 2012 -0700

----------------------------------------------------------------------
 bin/create.js |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/blob/4454e40b/bin/create.js
----------------------------------------------------------------------
diff --git a/bin/create.js b/bin/create.js
index c23d49e..f428fc0 100644
--- a/bin/create.js
+++ b/bin/create.js
@@ -80,10 +80,14 @@ if(fso.FolderExists(PROJECT_PATH)) {
 var MANIFEST_PATH=PROJECT_PATH+'\\www\\config.xml';
 var VERSION=read(ROOT+'\\VERSION').replace(/\r\n/,'').replace(/\n/,'');
 
-exec('ant.bat -f '+ ROOT +'\\build.xml dist');
-
-// copy in the project template
-exec('cmd /c xcopy '+ ROOT + '\\dist\\sample\\* '+PROJECT_PATH+' /S /Y');
+if(fso.FolderExists(ROOT+'\\framework')){
+    exec('ant.bat -f '+ ROOT +'\\build.xml dist');
+    // copy in the project template
+    exec('cmd /c xcopy '+ ROOT + '\\dist\\sample\\* '+PROJECT_PATH+' /S /Y');
+}else{
+    // copy in the project template
+    exec('cmd /c xcopy '+ ROOT + '\\sample\\* '+PROJECT_PATH+' /S /Y');    
+}
 
 replaceInFile(MANIFEST_PATH, /__NAME__/, APPNAME);
 


Mime
View raw message