You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2013/09/14 05:08:22 UTC

[02/11] android commit: [CB-3542] Fix create script's check for whether cordova.jar exists.

[CB-3542] Fix create script's check for whether cordova.jar exists.


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

Branch: refs/heads/master
Commit: c08b64efb3c5d2689b0ddeb3e102da5f1fb7db99
Parents: f4a0f55
Author: Andrew Grieve <ag...@chromium.org>
Authored: Fri Sep 13 16:11:33 2013 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Fri Sep 13 22:07:23 2013 -0400

----------------------------------------------------------------------
 bin/lib/create.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-android/blob/c08b64ef/bin/lib/create.js
----------------------------------------------------------------------
diff --git a/bin/lib/create.js b/bin/lib/create.js
index ffc50c7..0d05c76 100755
--- a/bin/lib/create.js
+++ b/bin/lib/create.js
@@ -83,7 +83,7 @@ module.exports.run = function(project_path, package_name, project_name, project_
     console.log('\tAndroid target : ' + target_api);
 
     // build from source. distro should have these files
-    if(!fs.existsSync(path.join(ROOT, 'cordova-' + VERSION + '.jar')) && fs.existsSync(path.join(ROOT, 'framework'))) {
+    if(!fs.existsSync(path.join(ROOT, 'framework', 'cordova-' + VERSION + '.jar')) && fs.existsSync(path.join(ROOT, 'framework'))) {
         console.log('Building jar and js files...');
         // update the cordova-android framework for the desired target
         exec('android update project --target ' + target_api + ' --path ' + path.join(ROOT, 'framework'));