cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tim...@apache.org
Subject webworks commit: CB-5139 - fix to able call bb10 version script from anywhere
Date Tue, 22 Oct 2013 21:14:00 GMT
Updated Branches:
  refs/heads/master ec6bfbeff -> 19cfe94a5


CB-5139 - fix to able call bb10 version script from anywhere


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/19cfe94a
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/19cfe94a
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/19cfe94a

Branch: refs/heads/master
Commit: 19cfe94a5a64379a4a3cd6cfaf2acaecb6d24671
Parents: ec6bfbe
Author: Tim Kim <timk@adobe.com>
Authored: Tue Oct 22 14:13:55 2013 -0700
Committer: Tim Kim <timk@adobe.com>
Committed: Tue Oct 22 14:13:55 2013 -0700

----------------------------------------------------------------------
 blackberry10/bin/templates/project/cordova/lib/version.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/19cfe94a/blackberry10/bin/templates/project/cordova/lib/version.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/version.js b/blackberry10/bin/templates/project/cordova/lib/version.js
index 1b9ddc4..694451f 100755
--- a/blackberry10/bin/templates/project/cordova/lib/version.js
+++ b/blackberry10/bin/templates/project/cordova/lib/version.js
@@ -19,7 +19,9 @@
 var fs = require("fs"),
     readline = require("readline"),
     util = require("util"),
-    filename = "www/cordova.js";
+    path = require('path'),
+    projectPath = path.resolve(__dirname,'../..'),
+    filename = path.join(projectPath, 'www/cordova.js');
 
 if (fs.existsSync(filename)) {
     var rl = readline.createInterface({


Mime
View raw message