source: trunk/t3d/t3d @ 60

Last change on this file since 60 was 52, checked in by phdmakk, 13 years ago

+ added memory detection support

  • Property svn:executable set to *
File size: 2.1 KB
Line 
1#!/bin/bash
2
3if [ "$T3D_HOME" == "" ]; then
4   echo "T3D_HOME environment variable not set! It must point to the T3D installation directory!";
5   exit;
6fi
7
8if [ "$JAVA_HOME" == "" ]; then
9   echo "JAVA_HOME environment variable not set! It must point to the directory of your Java Runtime >= 5.0";
10   exit;
11fi
12
13JAVA=$JAVA_HOME/bin/java
14
15CLASSPATH=$CLASSPATH:$T3D_HOME/lib/com.yourkit.javaprofiler.controller_7.0.4.jar
16CLASSPATH=$CLASSPATH:$T3D_HOME/lib/de.ugoe.cs.swe.trex.antlr_2.7.6.jar
17CLASSPATH=$CLASSPATH:$T3D_HOME/lib/org.eclipse.core.resources_3.4.0.v20080604-1400.jar
18CLASSPATH=$CLASSPATH:$T3D_HOME/lib/org.eclipse.core.runtime_3.4.0.v20080512.jar
19CLASSPATH=$CLASSPATH:$T3D_HOME/lib/org.eclipse.equinox.common_3.4.0.v20080421-2006.jar
20CLASSPATH=$CLASSPATH:$T3D_HOME/lib/org.eclipse.osgi_3.4.0.v20080605-1900.jar
21CLASSPATH=$CLASSPATH:$T3D_HOME/lib/stringtemplate.jar
22CLASSPATH=$CLASSPATH:$T3D_HOME/lib/xpp3_min-1.1.4c.jar
23CLASSPATH=$CLASSPATH:$T3D_HOME/lib/xstream-1.3.1.jar
24CLASSPATH=$CLASSPATH:$T3D_HOME/lib/fop.jar
25CLASSPATH=$CLASSPATH:$T3D_HOME/lib/commons-logging-1.1.1.jar
26CLASSPATH=$CLASSPATH:$T3D_HOME/lib/commons-io-1.4.jar
27CLASSPATH=$CLASSPATH:$T3D_HOME/lib/commons-lang-2.4.jar
28CLASSPATH=$CLASSPATH:$T3D_HOME/lib/commons-cli-1.2.jar
29CLASSPATH=$CLASSPATH:$T3D_HOME/lib/batik-util.jar
30CLASSPATH=$CLASSPATH:$T3D_HOME/lib/saxon9.jar
31
32if [ -d "$T3D_HOME/../de.ugoe.cs.swe.trex.core/bin/de" ]; then
33   CLASSPATH=$CLASSPATH:$T3D_HOME/../de.ugoe.cs.swe.trex.core/bin
34else
35   CLASSPATH=$CLASSPATH:$T3D_HOME/lib/de.ugoe.cs.swe.trex.core_0.6.0.200810271154.jar
36fi
37
38if [ -d "$T3D_HOME/../org.etsi.common/bin/org" ]; then
39   CLASSPATH=$CLASSPATH:$T3D_HOME/../org.etsi.common/bin
40else
41   CLASSPATH=$CLASSPATH:$T3D_HOME/lib/org.etsi.common.jar
42fi
43
44if [ -d "$T3D_HOME/bin/org" ]; then
45   CLASSPATH=$CLASSPATH:$T3D_HOME/bin
46else
47   CLASSPATH=$CLASSPATH:$T3D_HOME/lib/t3d.jar
48fi
49
50MT_CMD="$JAVA -Xmx512m -Xss128m -cp $CLASSPATH org.etsi.common.MemoryTest"
51
52JAVA_CMD="$JAVA -Xmx`$MT_CMD`m -Xss128m -cp $CLASSPATH org.etsi.t3d.T3D"
53
54if [[ $# > 0 && $1 == "--echo" ]]; then
55        echo $JAVA_CMD
56else
57        $JAVA_CMD "$@"
58fi
59
60#$JAVA -Xmx512m -Xss128m -cp $CLASSPATH org.etsi.t3d.T3D "$@"
Note: See TracBrowser for help on using the repository browser.