source: trunk/t3q/t3q.bat @ 59

Last change on this file since 59 was 49, checked in by phdmakk, 13 years ago

+ fix memory test setup

File size: 2.0 KB
Line 
1@echo off
2::consider using %dp0 instead of %T3Q_HOME%
3if "%T3Q_HOME%" == "" (
4    echo T3Q_HOME environment variable not set! It must point to the T3Q installation directory!
5    goto:eof
6)
7
8if "%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
13setlocal
14set CLASSPATH=%T3Q_HOME%\lib\com.yourkit.javaprofiler.controller_7.0.4.jar
15set CLASSPATH=%CLASSPATH%;%T3Q_HOME%\lib\de.ugoe.cs.swe.trex.antlr_2.7.6.jar
16set CLASSPATH=%CLASSPATH%;%T3Q_HOME%\lib\org.eclipse.core.resources_3.4.0.v20080604-1400.jar
17set CLASSPATH=%CLASSPATH%;%T3Q_HOME%\lib\org.eclipse.core.runtime_3.4.0.v20080512.jar
18set CLASSPATH=%CLASSPATH%;%T3Q_HOME%\lib\org.eclipse.equinox.common_3.4.0.v20080421-2006.jar
19set CLASSPATH=%CLASSPATH%;%T3Q_HOME%\lib\org.eclipse.osgi_3.4.0.v20080605-1900.jar
20set CLASSPATH=%CLASSPATH%;%T3Q_HOME%\lib\stringtemplate.jar
21set CLASSPATH=%CLASSPATH%;%T3Q_HOME%\lib\xpp3_min-1.1.4c.jar
22set CLASSPATH=%CLASSPATH%;%T3Q_HOME%\lib\xstream-1.3.1.jar
23set CLASSPATH=%CLASSPATH%;%T3Q_HOME%\lib\commons-cli-1.2.jar
24
25set JAVA="%JAVA_HOME%\bin\java.exe"
26
27if 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
33if 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
39if 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
45set MT_CMD=%JAVA% -Xmx512m -Xss128m -cp "%CLASSPATH%" org.etsi.common.MemoryTest
46
47for /f %%i in ('call %MT_CMD%') do set HEAP=%%i
48
49set JAVA_CMD=%JAVA% -Xmx%HEAP%m -Xss128m -cp "%CLASSPATH%" org.etsi.t3q.T3Q
50
51if "%1" == "--echo" (
52        echo %JAVA_CMD%
53) else (
54        %JAVA_CMD% %*
55)
56
Note: See TracBrowser for help on using the repository browser.