[7] | 1 | @echo off
|
---|
| 2 | ::consider using %dp0 instead of %T3Q_HOME%
|
---|
| 3 | if "%T3Q_HOME%" == "" (
|
---|
| 4 | echo T3Q_HOME environment variable not set! It must point to the T3Q installation directory!
|
---|
| 5 | goto:eof
|
---|
| 6 | )
|
---|
| 7 |
|
---|
| 8 | if "%JAVA_HOME%" == "" (
|
---|
| 9 | echo JAVA_HOME environment variable not set! It must point to the directory of your Java Runtime >= 5.0
|
---|
| 10 | goto:eof
|
---|
| 11 | )
|
---|
| 12 |
|
---|
| 13 | setlocal
|
---|
| 14 | set CLASSPATH=%T3Q_HOME%\lib\com.yourkit.javaprofiler.controller_7.0.4.jar
|
---|
| 15 | set CLASSPATH=%CLASSPATH%;%T3Q_HOME%\lib\de.ugoe.cs.swe.trex.antlr_2.7.6.jar
|
---|
| 16 | set CLASSPATH=%CLASSPATH%;%T3Q_HOME%\lib\org.eclipse.core.resources_3.4.0.v20080604-1400.jar
|
---|
| 17 | set CLASSPATH=%CLASSPATH%;%T3Q_HOME%\lib\org.eclipse.core.runtime_3.4.0.v20080512.jar
|
---|
| 18 | set CLASSPATH=%CLASSPATH%;%T3Q_HOME%\lib\org.eclipse.equinox.common_3.4.0.v20080421-2006.jar
|
---|
| 19 | set CLASSPATH=%CLASSPATH%;%T3Q_HOME%\lib\org.eclipse.osgi_3.4.0.v20080605-1900.jar
|
---|
| 20 | set CLASSPATH=%CLASSPATH%;%T3Q_HOME%\lib\stringtemplate.jar
|
---|
| 21 | set CLASSPATH=%CLASSPATH%;%T3Q_HOME%\lib\xpp3_min-1.1.4c.jar
|
---|
| 22 | set CLASSPATH=%CLASSPATH%;%T3Q_HOME%\lib\xstream-1.3.1.jar
|
---|
| 23 | set CLASSPATH=%CLASSPATH%;%T3Q_HOME%\lib\commons-cli-1.2.jar
|
---|
| 24 |
|
---|
| 25 | set JAVA="%JAVA_HOME%\bin\java.exe"
|
---|
| 26 |
|
---|
| 27 | if exist "%T3Q_HOME%\..\de.ugoe.cs.swe.trex.core\bin\de" (
|
---|
| 28 | set CLASSPATH=%CLASSPATH%;%T3Q_HOME%\..\de.ugoe.cs.swe.trex.core\bin
|
---|
| 29 | ) else (
|
---|
| 30 | set CLASSPATH=%CLASSPATH%;%T3Q_HOME%\lib\de.ugoe.cs.swe.trex.core_0.6.0.200810271154.jar
|
---|
| 31 | )
|
---|
| 32 |
|
---|
| 33 | if exist "%T3Q_HOME%\..\org.etsi.common\bin\org" (
|
---|
| 34 | set CLASSPATH=%CLASSPATH%;%T3Q_HOME%\..\org.etsi.common\bin
|
---|
| 35 | ) else (
|
---|
| 36 | set CLASSPATH=%CLASSPATH%;%T3Q_HOME%\lib\org.etsi.common.jar
|
---|
| 37 | )
|
---|
| 38 |
|
---|
| 39 | if exist "%T3Q_HOME%\bin\org" (
|
---|
| 40 | set CLASSPATH=%CLASSPATH%;%T3Q_HOME%\bin
|
---|
| 41 | ) else (
|
---|
| 42 | set CLASSPATH=%CLASSPATH%;%T3Q_HOME%\lib\t3q.jar
|
---|
| 43 | )
|
---|
| 44 |
|
---|
[42] | 45 | set JAVA_CMD=%JAVA% -Xmx512m -Xss128m -cp "%CLASSPATH%" org.etsi.t3q.T3Q
|
---|
[7] | 46 |
|
---|
| 47 | if "%1" == "--echo" (
|
---|
| 48 | echo %JAVA_CMD%
|
---|
| 49 | ) else (
|
---|
| 50 | %JAVA_CMD% %*
|
---|
| 51 | )
|
---|
| 52 |
|
---|