servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lh...@apache.org
Subject svn commit: r720482 - /servicemix/smx4/kernel/trunk/assembly/src/main/distribution/unix-shell/bin/servicemix
Date Tue, 25 Nov 2008 12:46:52 GMT
Author: lhein
Date: Tue Nov 25 04:46:51 2008
New Revision: 720482

URL: http://svn.apache.org/viewvc?rev=720482&view=rev
Log:
fixed problem with running on non-bash shells

Modified:
    servicemix/smx4/kernel/trunk/assembly/src/main/distribution/unix-shell/bin/servicemix

Modified: servicemix/smx4/kernel/trunk/assembly/src/main/distribution/unix-shell/bin/servicemix
URL: http://svn.apache.org/viewvc/servicemix/smx4/kernel/trunk/assembly/src/main/distribution/unix-shell/bin/servicemix?rev=720482&r1=720481&r2=720482&view=diff
==============================================================================
--- servicemix/smx4/kernel/trunk/assembly/src/main/distribution/unix-shell/bin/servicemix
(original)
+++ servicemix/smx4/kernel/trunk/assembly/src/main/distribution/unix-shell/bin/servicemix
Tue Nov 25 04:46:51 2008
@@ -214,14 +214,12 @@
     fi
 
     # Add the jars in the lib dir
-    for file in $SERVICEMIX_HOME/lib/*
+    for file in $SERVICEMIX_HOME/lib/*.jar
     do
-        if [[ $file == *.jar ]]; then
-            if [ "x$CLASSPATH" = "x" ]; then
-                CLASSPATH="$file"
-            else
-                CLASSPATH="$CLASSPATH:$file"
-            fi
+        if [ -z "$CLASSPATH" ]; then
+            CLASSPATH="$file"
+        else
+            CLASSPATH="$CLASSPATH:$file"
         fi
     done
     DEFAULT_JAVA_DEBUG_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"



Mime
View raw message