Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 15F8683B4 for ; Wed, 24 Aug 2011 13:11:54 +0000 (UTC) Received: (qmail 16449 invoked by uid 500); 24 Aug 2011 13:11:53 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 15815 invoked by uid 500); 24 Aug 2011 13:11:52 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 15806 invoked by uid 99); 24 Aug 2011 13:11:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Aug 2011 13:11:52 +0000 X-ASF-Spam-Status: No, hits=-2000.9 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Aug 2011 13:11:50 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 3959ACD697 for ; Wed, 24 Aug 2011 13:11:29 +0000 (UTC) Date: Wed, 24 Aug 2011 13:11:29 +0000 (UTC) From: "Dejan Bosanac (JIRA)" To: dev@activemq.apache.org Message-ID: <1298488932.9122.1314191489231.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <457382139.9082.1314189569565.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (AMQ-3471) bin/activemq startup script syntax error when OS is of type darwin MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AMQ-3471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dejan Bosanac resolved AMQ-3471. -------------------------------- Resolution: Duplicate Assignee: Dejan Bosanac This has already been fixed on trunk http://svn.apache.org/viewvc/activemq/trunk/assembly/src/release/bin/activemq?r1=1088979&r2=1088978&pathrev=1088979 > bin/activemq startup script syntax error when OS is of type darwin > ------------------------------------------------------------------ > > Key: AMQ-3471 > URL: https://issues.apache.org/jira/browse/AMQ-3471 > Project: ActiveMQ > Issue Type: Bug > Components: Broker > Affects Versions: 5.5.0 > Environment: OS X 10.6.8 > Reporter: mark petrovic > Assignee: Dejan Bosanac > Priority: Minor > Original Estimate: 1h > Remaining Estimate: 1h > > The startup script bin/activemq has a bug in the code leg when the OS is of type darwin. > Without the fix, the script emits to the console: > $ ./apache-activemq-5.5.0/bin/activemq console > INFO: Using default configuration > (you can configure options in one of these file: /etc/default/activemq /Users/petrovic/.activemqrc) > INFO: Invoke the following command to create a configuration file > ./apache-activemq-5.5.0/bin/activemq setup [ /etc/default/activemq | /Users/petrovic/.activemqrc ] > ./apache-activemq-5.5.0/bin/activemq: line 252: [-z: command not found <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< > INFO: Using java '/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java' > ... > The following patch fixes this problem: > $ diff -u apache-activemq-5.5.0/bin/activemq ../tools/apache-activemq-5.5.0/bin/activemq > --- apache-activemq-5.5.0/bin/activemq 2011-03-28 11:39:43.000000000 -0700 > +++ ../tools/apache-activemq-5.5.0/bin/activemq 2011-08-24 05:15:56.000000000 -0700 > @@ -249,7 +249,7 @@ > CYGWIN*) OSTYPE="cygwin" ;; > Darwin*) > OSTYPE="darwin" > - if [-z "$JAVA_HOME"] && [ "$JAVACMD" = "auto" ];then > + if [ -z "$JAVA_HOME" ] && [ "$JAVACMD" = "auto" ];then > JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home > fi > ;; -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira