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 209CC200B4F for ; Tue, 26 Jul 2016 16:19:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 1F235160A75; Tue, 26 Jul 2016 14:19:22 +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 674EE160A69 for ; Tue, 26 Jul 2016 16:19:21 +0200 (CEST) Received: (qmail 11561 invoked by uid 500); 26 Jul 2016 14:19:20 -0000 Mailing-List: contact issues-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 issues@karaf.apache.org Received: (qmail 11550 invoked by uid 99); 26 Jul 2016 14:19:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jul 2016 14:19:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 7F63D2C0D5E for ; Tue, 26 Jul 2016 14:19:20 +0000 (UTC) Date: Tue, 26 Jul 2016 14:19:20 +0000 (UTC) From: "Guillaume Nodet (JIRA)" To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KARAF-4599) KARAF-4564 impact: karaf startup command now only works when invoked from current directoy, no longer via absolute path MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 26 Jul 2016 14:19:22 -0000 [ https://issues.apache.org/jira/browse/KARAF-4599?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1539= 3860#comment-15393860 ]=20 Guillaume Nodet commented on KARAF-4599: ---------------------------------------- {{readlink -e}} is not supported on OS X.=20 > KARAF-4564 impact: karaf startup command now only works when invoked from= current directoy, no longer via absolute path > -------------------------------------------------------------------------= ---------------------------------------------- > > Key: KARAF-4599 > URL: https://issues.apache.org/jira/browse/KARAF-4599 > Project: Karaf > Issue Type: Bug > Affects Versions: 3.0.7, 3.0.8 > Reporter: Michael Vorburger > Assignee: Jean-Baptiste Onofr=C3=A9 > Priority: Critical > Fix For: 4.1.0, 4.0.6, 3.0.8 > > > KARAF-4564 introduced a fix for "Can't start karaf using symbolic link", = but this introduced a new regression: Following that change, the ./karaf st= artup command now only works when invoked from current directoy, no longer = via absolute path. For example: > {noformat}git clone git://git.apache.org/karaf.git > cd karaf > git checkout karaf-3.0.x > cd tooling/karaf-maven-plugin > mvn clean install > cd ../.. > mvn clean install -DskipTests > cd assemblies/apache-karaf/target/assembly/bin/ > chmod +x karaf > ./karaf > cd ../../../../.. > ./assemblies/apache-karaf/target/assembly/bin/karaf > Error: Could not find or load main class org.apache.karaf.main.Main > {noformat} > Of course we could further fiddle with the startup script to solve this s= omehow, but it occurred to me that perhaps somewhere on Apache there is a r= eady made script for this already? Like maybe looking at e.g. how the Maven= / Ant & other such tools (Gradle?) would be valuable. > Perhaps some sort of non-regression integration test for both start-up sc= enarios, from current as well as via abs. path, would be of value? -- This message was sent by Atlassian JIRA (v6.3.4#6332)