From issues-return-94830-archive-asf-public=cust-asf.ponee.io@cordova.apache.org Sun Jun 3 01:38:04 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 1F8AA180676 for ; Sun, 3 Jun 2018 01:38:03 +0200 (CEST) Received: (qmail 83492 invoked by uid 500); 2 Jun 2018 23:38:03 -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 83481 invoked by uid 99); 2 Jun 2018 23:38:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Jun 2018 23:38:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id C4FA5C00E1 for ; Sat, 2 Jun 2018 23:38:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id e5mml_nEDc4T for ; Sat, 2 Jun 2018 23:38:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 34F5C5F19C for ; Sat, 2 Jun 2018 23:38:01 +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 7EB56E036C for ; Sat, 2 Jun 2018 23:38:00 +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 3344620EAB for ; Sat, 2 Jun 2018 23:38:00 +0000 (UTC) Date: Sat, 2 Jun 2018 23:38:00 +0000 (UTC) From: "Raphael (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CB-14101) check_reqs.js does not recognize java version MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-14101?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:all-tabpanel ] Raphael updated CB-14101: ------------------------- Component/s: cordova-android > check_reqs.js does not recognize java version > --------------------------------------------- > > Key: CB-14101 > URL: https://issues.apache.org/jira/browse/CB-14101 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android > Affects Versions: 8.0.0 > Environment: OS =3D Arch Linux > JAVA =3D=C2=A0javac 9.0.4 > CORDOVA =3D 8.0.0 > Reporter: Arne Simon > Assignee: Raphael > Priority: Major > > The java version=C2=A0 i am using produces following output. > {code} > > javac -version=20 > javac 9.0.4 > {code} > =C2=A0 > The error happens in two points: > {code:java} > // We use tryCommand with catchStderr =3D true, because > // javac writes version info to stderr instead of stdout > return tryCommand('javac -version', msg, true).then(function (output) { > // Let's check for at least Java 8, and keep it future proof so we can = support Java 10 > var match =3D /javac ((?:1\.)(?:[8-9]\.)(?:\d+))|((?:1\.)(?:[1-9]\d+\.)= (?:\d+))/i.exec(output); > return match && match[1]; > });{code} > 1.=C2=A0_platforms/android/cordova/lib/check_reqs.js:218_ > The comment states that javac prints to stderr, this is not true on my sy= stem it prints to stdout! > 2.=C2=A0_platforms/android/cordova/lib/check_reqs.js:220_ > The regex only looks after version numbers like 1.8 or 1.9 or 10, but the= version number my java version prints is _9.0.4_ -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org