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/16 20:27:04 UTC
android commit: Always have create script rebuild jar when on a dev
version
Updated Branches:
refs/heads/master 34bdef9c4 -> 1d1cdb5ea
Always have create script rebuild jar when on a dev version
Project: http://git-wip-us.apache.org/repos/asf/cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-android/commit/1d1cdb5e
Tree: http://git-wip-us.apache.org/repos/asf/cordova-android/tree/1d1cdb5e
Diff: http://git-wip-us.apache.org/repos/asf/cordova-android/diff/1d1cdb5e
Branch: refs/heads/master
Commit: 1d1cdb5ea47f59421bb408040598350e0dceca0c
Parents: 34bdef9
Author: Andrew Grieve <ag...@chromium.org>
Authored: Mon Sep 16 14:25:12 2013 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Mon Sep 16 14:25:12 2013 -0400
----------------------------------------------------------------------
bin/lib/create.js | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d1cdb5e/bin/lib/create.js
----------------------------------------------------------------------
diff --git a/bin/lib/create.js b/bin/lib/create.js
index 6826b9f..1cd5cc6 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