From c08b64efb3c5d2689b0ddeb3e102da5f1fb7db99 Mon Sep 17 00:00:00 2001 From: Andrew Grieve Date: Fri, 13 Sep 2013 16:11:33 -0400 Subject: [PATCH] [CB-3542] Fix create script's check for whether cordova.jar exists. --- bin/lib/create.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/lib/create.js b/bin/lib/create.js index ffc50c7e..0d05c766 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'));