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 2014/07/14 16:29:04 UTC

[2/2] android commit: Fix for `android` not being in PATH check on Windows

Fix for `android` not being in PATH check on Windows

close #103


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

Branch: refs/heads/master
Commit: 0a3714e5e0f6046caf9468395aa0587888eb8408
Parents: 86a2830
Author: Eion Robb <ei...@robbmob.com>
Authored: Sun Jun 22 09:43:30 2014 +1200
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Mon Jul 14 10:28:27 2014 -0400

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


http://git-wip-us.apache.org/repos/asf/cordova-android/blob/0a3714e5/bin/lib/check_reqs.js
----------------------------------------------------------------------
diff --git a/bin/lib/check_reqs.js b/bin/lib/check_reqs.js
index 3296acc..91875f5 100644
--- a/bin/lib/check_reqs.js
+++ b/bin/lib/check_reqs.js
@@ -81,7 +81,7 @@ module.exports.check_android = function() {
         }
         return Q();
     }, function(stderr) {
-        if (stderr.match(/command\snot\sfound/)) {
+        if (stderr.match(/command\snot\sfound/) || stderr.match(/is not recognized as an internal or external command/)) {
             return Q.reject(new Error('The command \"android\" failed. Make sure you have the latest Android SDK installed, and the \"android\" command (inside the tools/ folder) is added to your path.'));
         } else {
             return Q.reject(new Error('An error occurred while listing Android targets. Error: ' + stderr ));