From 1d1cdb5ea47f59421bb408040598350e0dceca0c Mon Sep 17 00:00:00 2001 From: Andrew Grieve Date: Mon, 16 Sep 2013 14:25:12 -0400 Subject: [PATCH] Always have create script rebuild jar when on a dev version --- bin/lib/create.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/lib/create.js b/bin/lib/create.js index 6826b9f8..1cd5cc6e 100755 --- a/bin/lib/create.js +++ b/bin/lib/create.js @@ -50,9 +50,10 @@ function setShellFatal(value, func) { } function ensureJarIsBuilt(version, target_api) { - if (!fs.existsSync(path.join(ROOT, 'framework', 'cordova-' + version + '.jar')) && fs.existsSync(path.join(ROOT, 'framework'))) { + var isDevVersion = /-dev$/.test(version); + if (isDevVersion || !fs.existsSync(path.join(ROOT, 'framework', 'cordova-' + version + '.jar')) && fs.existsSync(path.join(ROOT, 'framework'))) { var valid_target = check_reqs.get_target(); - console.log('Building jar'); + console.log('Building cordova-' + version + '.jar'); // update the cordova-android framework for the desired target exec('android --silent update lib-project --target "' + target_api + '" --path "' + path.join(ROOT, 'framework') + '"'); // compile cordova.js and cordova.jar