Return-Path: X-Original-To: apmail-cordova-commits-archive@www.apache.org Delivered-To: apmail-cordova-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0DAA717641 for ; Sun, 4 Jan 2015 02:06:23 +0000 (UTC) Received: (qmail 8084 invoked by uid 500); 4 Jan 2015 02:06:23 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 7965 invoked by uid 500); 4 Jan 2015 02:06:23 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 7949 invoked by uid 99); 4 Jan 2015 02:06:23 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Jan 2015 02:06:23 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 7946CA3DE0B; Sun, 4 Jan 2015 02:06:23 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: agrieve@apache.org To: commits@cordova.apache.org Date: Sun, 04 Jan 2015 02:06:23 -0000 Message-Id: <312e4d91647e4ef3948477c6ab497766@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/3] android commit: CB-8168 Add support for `cordova/run --list` (closes #139) Repository: cordova-android Updated Branches: refs/heads/4.0.x 61c4bb988 -> 95e10bdb9 refs/heads/master 343974664 -> c2a6dcb6b CB-8168 Add support for `cordova/run --list` (closes #139) Project: http://git-wip-us.apache.org/repos/asf/cordova-android/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-android/commit/c2a6dcb6 Tree: http://git-wip-us.apache.org/repos/asf/cordova-android/tree/c2a6dcb6 Diff: http://git-wip-us.apache.org/repos/asf/cordova-android/diff/c2a6dcb6 Branch: refs/heads/4.0.x Commit: c2a6dcb6bd98ae8060ef839d403bfd764047bdfa Parents: 3439746 Author: Murat Sutunc Authored: Mon Dec 29 11:43:46 2014 -0800 Committer: Andrew Grieve Committed: Sat Jan 3 21:05:52 2015 -0500 ---------------------------------------------------------------------- bin/templates/cordova/lib/run.js | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-android/blob/c2a6dcb6/bin/templates/cordova/lib/run.js ---------------------------------------------------------------------- diff --git a/bin/templates/cordova/lib/run.js b/bin/templates/cordova/lib/run.js index 024fcd0..12f178c 100644 --- a/bin/templates/cordova/lib/run.js +++ b/bin/templates/cordova/lib/run.js @@ -23,11 +23,12 @@ var path = require('path'), build = require('./build'), emulator = require('./emulator'), device = require('./device'), + shell = require('shelljs'), Q = require('q'); /* * Runs the application on a device if available. - * If not device is found, it will use a started emulator. + * If no device is found, it will use a started emulator. * If no started emulators are found it will attempt to start an avd. * If no avds are found it will error out. * Returns a promise. @@ -35,6 +36,7 @@ var path = require('path'), module.exports.run = function(args) { var buildFlags = []; var install_target; + var list = false; for (var i=2; i