Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 6B879200C52 for ; Mon, 10 Apr 2017 21:24:46 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 69FCC160B99; Mon, 10 Apr 2017 19:24:46 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B2409160BA5 for ; Mon, 10 Apr 2017 21:24:45 +0200 (CEST) Received: (qmail 20432 invoked by uid 500); 10 Apr 2017 19:24:44 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 20421 invoked by uid 99); 10 Apr 2017 19:24:44 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Apr 2017 19:24:44 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 54CAB18E980 for ; Mon, 10 Apr 2017 19:24:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id m00T0P-m1-Dm for ; Mon, 10 Apr 2017 19:24:43 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id CDA5A5FE07 for ; Mon, 10 Apr 2017 19:24:42 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 49AEFE0D57 for ; Mon, 10 Apr 2017 19:24:42 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id A79D12406D for ; Mon, 10 Apr 2017 19:24:41 +0000 (UTC) Date: Mon, 10 Apr 2017 19:24:41 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-12640) listing targets with cli scripts does not work with v26 of android sdk tools MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 10 Apr 2017 19:24:46 -0000 [ https://issues.apache.org/jira/browse/CB-12640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15963388#comment-15963388 ] ASF subversion and git services commented on CB-12640: ------------------------------------------------------ Commit e13e15d3e9aa4b9a61c6ece434e7c023fa5c3553 in cordova-android's branch refs/heads/master from filmaj [ https://git-wip-us.apache.org/repos/asf?p=cordova-android.git;h=e13e15d ] CB-12640: better handling of unrecognized commands on windows. removed error checking in emulator image listing when shelling out, as we already defensively dont shell out if the program is not on the PATH / not recognized. added additional test for windows unrecognized command errors for target listing. fixed up spying in a test. > listing targets with cli scripts does not work with v26 of android sdk tools > ---------------------------------------------------------------------------- > > Key: CB-12640 > URL: https://issues.apache.org/jira/browse/CB-12640 > Project: Apache Cordova > Issue Type: Bug > Components: Android > Affects Versions: 6.2.1 > Reporter: Filip Maj > Assignee: Filip Maj > > Another Android SDK Tools release, another new problem! The {{android}} command is back and has completely different behaviour from SDK Tools 25.3.x. It now: > a) prints out a deprecation warning > b) does not accept {{list targets}} (must be {{list target}}) as a command > c) does not print out an error message telling users to use {{avdmanager}} or {{sdkmanager}} > In 25.3.x, {{android}} would exit with a non-zero exit code and print out an error message saying the command is no longer available. > In 25.2.x and below, {{android}} was the go-to command for all things android-related. > The [existing code for listing targets|https://github.com/apache/cordova-android/blob/master/bin/templates/cordova/lib/android_sdk.js] currently follows this flow: > 1. Run {{android}} to list targets. If that works, parse targets out and exit. > 2. If {{android}} fails with a non-zero exit code and a particular error message (the one that would be output in 25.3.x version of the tools), leverage {{sdkmanager}}, parse its output for installed targets. > [~bowserj] brought up a good point to just use {{avdmanager list target}} instead of {{sdkmanager}} - it maintains the same output format for target listing as the old {{android}} tool does, which should allow us to remove the [code we have in place to convert {{sdkmanager}} output to the old {{android}} output format|https://github.com/apache/cordova-android/blob/master/bin/templates/cordova/lib/android_sdk.js#L107]. > Another solid [~bowserj] piece of advice is to try to use the {{avdmanager}} tool first before falling back to {{android}}. > I will attempt to implement both suggestions above, and add test cases leveraging output fixtures from the various Android SDK Tool versions. -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org