servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r495738 - /incubator/servicemix/trunk/distributions/apache-servicemix/src/main/release/bin/servicemix
Date Fri, 12 Jan 2007 21:00:20 GMT
Author: gnodet
Date: Fri Jan 12 13:00:20 2007
New Revision: 495738

URL: http://svn.apache.org/viewvc?view=rev&rev=495738
Log:
Support for AIX

Modified:
    incubator/servicemix/trunk/distributions/apache-servicemix/src/main/release/bin/servicemix

Modified: incubator/servicemix/trunk/distributions/apache-servicemix/src/main/release/bin/servicemix
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/distributions/apache-servicemix/src/main/release/bin/servicemix?view=diff&rev=495738&r1=495737&r2=495738
==============================================================================
--- incubator/servicemix/trunk/distributions/apache-servicemix/src/main/release/bin/servicemix
(original)
+++ incubator/servicemix/trunk/distributions/apache-servicemix/src/main/release/bin/servicemix
Fri Jan 12 13:00:20 2007
@@ -56,17 +56,20 @@
     cygwin=false;
     darwin=false;
     aix=false;
+    os400=false;
     case "`uname`" in
         CYGWIN*)
             cygwin=true
             ;;
-        
         Darwin*)
             darwin=true
             ;;
         AIX*)
             aix=true
             ;;
+        OS400*)
+            os400=true
+            ;;
     esac
     # For AIX, set an environment variable
     if $aix; then
@@ -150,7 +153,7 @@
    echo "`$JAVA -version`"
    # This service should call `java -version`, 
    # read stdout, and look for hints
-   if $JAVA -version 2>&1 | grep "^IBM" ; then
+   if $JAVA -version 2>&1 | grep "^IBM" | $os400; then
        JVM_VENDOR="IBM"
    else
        JVM_VENDOR="SUN"
@@ -182,11 +185,15 @@
     if [ "$JVM_VENDOR" = "SUN" ]; then
         DEFAULT_JAVA_OPTS="-server $DEFAULT_JAVA_OPTS"
     elif [ "$JVM_VENDOR" = "IBM" ]; then
-        DEFAULT_JAVA_OPTS="-Xverify:none $DEFAULT_JAVA_OPTS"
-        if $aix; then
+        if $os400; then
+            DEFAULT_JAVA_OPTS="$DEFAULT_JAVA_OPTS"
+        elif $aix; then
             DEFAULT_JAVA_OPTS="-Xlp $DEFAULT_JAVA_OPTS"
+        else
+            DEFAULT_JAVA_OPTS="-Xverify:none $DEFAULT_JAVA_OPTS"
         fi
     fi
+
     # Add the conf directory so it picks up the Log4J config
     CLASSPATH="$CLASSPATH:$SERVICEMIX_HOME/conf"
     DEFAULT_JAVA_DEBUG_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"



Mime
View raw message