blob: d0cfcc756890f0aa2b369f924da9e1ffd542042a (
plain) (
blame)
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
|
#!/bin/sh
#
# $FreeBSD$
JAVA_HOME=${JAVA_HOME:-"%%JAVA_HOME%%"}
POSEIDON_HOME="$HOME/.poseidon"
if [ ! -d "$JAVA_HOME" ] ; then
echo "Could not find a JDK."
echo "Either you have to install a JDK (1.4 or up),"
echo "or you have to set JAVA_HOME to your JDK installation directory."
exit
fi
JAVACMD="$JAVA_HOME/bin/java"
ulimit -s 2048
cmd="`realpath "$0"`"
echo "Absolute path: $cmd"
instdir="`dirname "$cmd"`"
if [ -n "$1" ] ; then
project="`realpath "$1"`"
echo "Project to load: $project"
loglevel=$2
else
project=
loglevel=
fi
cd "$instdir"
CLASSPATH="../lib/floating-server.jar:../lib/poseidon.jar:../lib/umlplugin.jar"
CLASSPATH="$CLASSPATH:$JAVA_HOME/jre/lib/rt.jar" # for compilation
export CLASSPATH
# increase memory here, if required (e. g. -Xmx256m)
POSEIDON_ADDITIONAL_JAVA_ARGS="-Xms64m -Xmx160m"
POSEIDON_PLATFORM_JAVA_ARGS=
"$JAVACMD" $POSEIDON_PLATFORM_JAVA_ARGS $POSEIDON_ADDITIONAL_JAVA_ARGS -Dposeidon.java.home="$JAVA_HOME" -Dposeidon.user.dir.%%EDITION%%="$POSEIDON_HOME" com.gentleware.poseidon.Poseidon "$project"
|