activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "mark petrovic (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMQ-3471) bin/activemq startup script syntax error when OS is of type darwin
Date Wed, 24 Aug 2011 12:39:29 GMT
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
            Priority: Minor


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

        

Mime
View raw message