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