summarylogtreecommitdiffstats
path: root/soapui
blob: cfaccc0d0224bf66870fc737662c3ad8486b5630 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#!/bin/sh
### ====================================================================== ###
##                                                                          ##
##  SoapUI Bootstrap Script                                                 ##
##                                                                          ##
### ====================================================================== ###

### $Id$ ###

DIRNAME=`dirname $0`

# OS specific support (must be 'true' or 'false').
cygwin=false;
darwin=false;
case "`uname`" in
    CYGWIN*)
        cygwin=true
        ;;
    Darwin*)
        darwin=true
        ;;
esac

# Setup SOAPUI_BASE
if [ "x$SOAPUI_HOME" = "x" ];
then
	SOAPUI_HOME=$HOME
fi
export SOAPUI_HOME

if [ "x$SOAPUI_BASE" = "x" ];
then
    # get the full path (without any relative bits)
    SOAPUI_BASE=/usr/share/soapui
fi
export SOAPUI_BASE

SOAPUI_CLASSPATH=$SOAPUI_BASE/bin/soapui-#SOAPUIVER#-EB.jar:$SOAPUI_BASE/lib/*

export SOAPUI_CLASSPATH

JAVA_OPTS="-Dawt.useSystemAAFontSettings=on -Xms128m -Xmx1024m -Dsoapui.properties=soapui.properties -Dsoapui.home=$SOAPUI_HOME -splash:soapui-splash.png"

if $darwin
then
    JAVA_OPTS="$JAVA_OPTS -Dswing.crossplatformlaf=apple.laf.AquaLookAndFeel -Dapple.eawt.quitStrategy=CLOSE_ALL_WINDOWS"
fi

if [ $SOAPUI_BASE != "" ] 
then
    JAVA_OPTS="$JAVA_OPTS -Dsoapui.ext.libraries=$SOAPUI_BASE/bin/ext"
    JAVA_OPTS="$JAVA_OPTS -Dsoapui.ext.listeners=$SOAPUI_BASE/bin/listeners"
    JAVA_OPTS="$JAVA_OPTS -Dsoapui.ext.actions=$SOAPUI_BASE/bin/actions"
	JAVA_OPTS="$JAVA_OPTS -Djava.library.path=$SOAPUI_BASE/bin"
	JAVA_OPTS="$JAVA_OPTS -Dwsi.dir=$SOAPUI_BASE/wsi-test-tools"
#uncomment to disable browser component
#   JAVA_OPTS="$JAVA_OPTS -Dsoapui.jxbrowser.disable=true"
fi

export JAVA_OPTS

# For Cygwin, switch paths to Windows format before running java
if [ $cygwin = "true" ] 
then
    SOAPUI_BASE=`cygpath --path --dos "$SOAPUI_BASE"`
    SOAPUI_CLASSPATH=`cygpath --path --dos "$SOAPUI_CLASSPATH"`
fi

cd $DIRNAME
echo ================================
echo =
echo = SOAPUI_BASE = $SOAPUI_BASE
echo =
echo ================================

${JAVA_HOME}/bin/java $JAVA_OPTS -cp $SOAPUI_CLASSPATH com.eviware.soapui.SoapUI "$@"