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 2ED56200D41 for ; Wed, 8 Nov 2017 04:46:19 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 2D4E4160C00; Wed, 8 Nov 2017 03:46:19 +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 74432160BED for ; Wed, 8 Nov 2017 04:46:18 +0100 (CET) Received: (qmail 62013 invoked by uid 500); 8 Nov 2017 03:46:17 -0000 Mailing-List: contact commits-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list commits@karaf.apache.org Received: (qmail 62004 invoked by uid 99); 8 Nov 2017 03:46:17 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Nov 2017 03:46:17 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id E167787CCF; Wed, 8 Nov 2017 03:46:16 +0000 (UTC) Date: Wed, 08 Nov 2017 03:46:16 +0000 To: "commits@karaf.apache.org" Subject: [karaf] branch master updated: [KARAF-5467]Karaf doesn't recognize Java 9 on Ubuntu 16.04 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <151011277684.11594.13428871381771676714@gitbox.apache.org> From: ffang@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: karaf X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: fc70bda293ce49f12cc8c04922567875eb86eacf X-Git-Newrev: c9bffd932c27e362f9aaeaa045a2ca6b151c4259 X-Git-Rev: c9bffd932c27e362f9aaeaa045a2ca6b151c4259 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated archived-at: Wed, 08 Nov 2017 03:46:19 -0000 This is an automated email from the ASF dual-hosted git repository. ffang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/karaf.git The following commit(s) were added to refs/heads/master by this push: new c9bffd9 [KARAF-5467]Karaf doesn't recognize Java 9 on Ubuntu 16.04 c9bffd9 is described below commit c9bffd932c27e362f9aaeaa045a2ca6b151c4259 Author: Freeman Fang AuthorDate: Wed Nov 8 11:46:00 2017 +0800 [KARAF-5467]Karaf doesn't recognize Java 9 on Ubuntu 16.04 --- .../features/base/src/main/filtered-resources/resources/bin/inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/assemblies/features/base/src/main/filtered-resources/resources/bin/inc b/assemblies/features/base/src/main/filtered-resources/resources/bin/inc index bcd4962..67433ae 100644 --- a/assemblies/features/base/src/main/filtered-resources/resources/bin/inc +++ b/assemblies/features/base/src/main/filtered-resources/resources/bin/inc @@ -213,7 +213,9 @@ checkJvmVersion() { | awk '{print substr($3,2,length($3)-2)}' \ | awk '{print substr($1, 3, 3)}' \ | sed -e 's;\.;;g') - if [ "x${VERSION}" = "x" ]; then + MAJOR_VERSION=$("${JAVA}" -version 2>&1 \ + |awk -F '"' '/version/ {print $2}') + if [ "${MAJOR_VERSION:0:1}" -ge "9" ]; then VERSION=90 fi if [ "${VERSION}" -lt "80" ]; then @@ -317,4 +319,4 @@ convertPaths() { CLASSPATH=$(cygpath --path --windows "${CLASSPATH}") fi fi -} \ No newline at end of file +} -- To stop receiving notification emails like this one, please contact ['"commits@karaf.apache.org" '].