You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yoko-commits@incubator.apache.org by en...@apache.org on 2006/03/01 10:26:35 UTC

svn commit: r381975 - /incubator/yoko/trunk/ob/config/test.sh

Author: enolan
Date: Wed Mar  1 02:26:34 2006
New Revision: 381975

URL: http://svn.apache.org/viewcvs?rev=381975&view=rev
Log: (empty)

Added:
    incubator/yoko/trunk/ob/config/test.sh

Added: incubator/yoko/trunk/ob/config/test.sh
URL: http://svn.apache.org/viewcvs/incubator/yoko/trunk/ob/config/test.sh?rev=381975&view=auto
==============================================================================
--- incubator/yoko/trunk/ob/config/test.sh (added)
+++ incubator/yoko/trunk/ob/config/test.sh Wed Mar  1 02:26:34 2006
@@ -0,0 +1,98 @@
+# **********************************************************************
+#
+# Copyright (c) 2005-2006
+# IONA Technologies PLC
+# Dublin, Ireland and Waltham, MA, USA
+#
+# All Rights Reserved
+#
+# Licensed to apache under Apache 2.0 License - 2006
+# **********************************************************************
+
+#
+# Check for Windows - don't change this
+#
+windows=
+if test -d 'c:/' # Simple check for windows
+then
+    windows="yes"
+    SEPARATOR=";"
+else
+    windows="no"
+    SEPARATOR=":"
+fi
+
+# ----------------------------------------------------------------------
+# Please change the following settings to reflect your Java interpreter
+# ----------------------------------------------------------------------
+
+# SUN's JDK 1.1 or higher
+JAVA="java"
+
+# ----------------------------------------------------------------------
+# Don't make any changes below this line
+# ----------------------------------------------------------------------
+
+#
+# Check the command line parameters
+#
+auto="false"
+for arg in ${1+"$@"}
+do
+    if test -n "$arg" -a "$arg" = "--auto"
+then
+    auto="true"
+    fi
+done
+
+
+# ORBacus for Java classes
+OB_LIB=$top_srcdir/../ob/lib
+
+#
+# Remove echo incompatibilities
+#
+if test "`echo -e xxx`" = "xxx"
+then
+    echo="echo -e"
+else
+    echo=echo
+fi
+
+#
+# Set the executable extension
+#
+exe=
+if test "$windows" = "yes"
+then
+    exe=".exe"
+fi
+
+#
+# ORBACUS_CONFIG must not be set
+#
+unset ORBACUS_CONFIG
+
+#
+# Function to kill the test server (if there is one)
+#
+rm -f srvid
+kill_server()
+{
+    if test -r srvid
+    then
+        srvid=`cat srvid`
+	kill $srvid
+	rm -f srvid
+    fi
+}
+
+#
+# Function to kill the test server and exit
+#
+deactivate()
+{
+    kill_server
+    exit
+}
+trap deactivate 1 2 3 4 5 6 7 8 10 12 13 14 15