Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 95295 invoked from network); 17 Mar 2010 10:34:49 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Mar 2010 10:34:49 -0000 Received: (qmail 96460 invoked by uid 500); 17 Mar 2010 10:34:49 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 96358 invoked by uid 500); 17 Mar 2010 10:34:49 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 96342 invoked by uid 99); 17 Mar 2010 10:34:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Mar 2010 10:34:48 +0000 X-ASF-Spam-Status: No, hits=-1040.4 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Mar 2010 10:34:47 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5B82B234C4AE for ; Wed, 17 Mar 2010 10:34:27 +0000 (UTC) Message-ID: <97199527.311711268822067373.JavaMail.jira@brutus.apache.org> Date: Wed, 17 Mar 2010 10:34:27 +0000 (UTC) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Resolved: (DERBY-3207) The bin scripts should be able to run when DERBY_HOME is not set In-Reply-To: <21366119.1195157563178.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-3207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Knut Anders Hatlen resolved DERBY-3207. --------------------------------------- Resolution: Fixed Fix Version/s: 10.6.0.0 Issue & fix info: (was: [Patch Available]) Committed revision 924209. > The bin scripts should be able to run when DERBY_HOME is not set > ---------------------------------------------------------------- > > Key: DERBY-3207 > URL: https://issues.apache.org/jira/browse/DERBY-3207 > Project: Derby > Issue Type: Improvement > Components: Demos/Scripts > Affects Versions: 10.4.1.3 > Reporter: Knut Anders Hatlen > Assignee: Knut Anders Hatlen > Priority: Minor > Fix For: 10.6.0.0 > > Attachments: d3207.diff, d3207.stat > > > The scripts under bin should be able to run without requiring the users to set DERBY_HOME explicitly. The script derby_common.sh, which is sourced by all the scripts under bin, contains code to detect DERBY_HOME based on the value of $0, but since the scripts need to know DERBY_HOME in order to source derby_common.sh, they still fail when DERBY_HOME is not set. > When I removed this part of bin/ij > ------- > if [ -z "$DERBY_HOME" ] ; then > echo "Error: DERBY_HOME is not set. Please set the DERBY_HOME environment variable" > echo "to the location of your Derby installation." > exit 1 > fi > . $DERBY_HOME/bin/derby_common.sh > ------- > and in-lined the code in derby_common.sh in its place, I was able to run ij successfully by typing the command './bin/ij' without setting DERBY_HOME first. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.