-
Notifications
You must be signed in to change notification settings - Fork 1
/
Translator.bat
75 lines (56 loc) · 2.34 KB
/
Translator.bat
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
@echo off
REM **************************************************
REM ** Set console window properties **
REM **************************************************
REM TITLE Spoon console
REM COLOR F0
REM **************************************************
REM ** Make sure we use the correct J2SE version! **
REM ** Uncomment the PATH line in case of trouble **
REM **************************************************
REM set PATH=C:\j2sdk1.4.2_01\bin;.;%PATH%
REM **************************************************
REM ** Libraries used by Kettle: **
REM **************************************************
set CLASSPATH=.
REM ******************
REM KETTLE Library
REM ******************
set CLASSPATH=%CLASSPATH%;lib\kettle.jar
REM **********************
REM External Libraries
REM **********************
REM **********************
REM External Libraries
REM **********************
REM Loop the libext directory and add the classpath.
REM The following command would only add the last jar: FOR %%F IN (libext\*.jar) DO call set CLASSPATH=%CLASSPATH%;%%F
REM So the circumvention with a subroutine solves this ;-)
FOR %%F IN (libext\*.jar) DO call :addcp %%F
FOR %%F IN (libext\JDBC\*.jar) DO call :addcp %%F
FOR %%F IN (libext\webservices\*.jar) DO call :addcp %%F
FOR %%F IN (libext\commons\*.jar) DO call :addcp %%F
FOR %%F IN (libext\web\*.jar) DO call :addcp %%F
FOR %%F IN (libext\pentaho\*.jar) DO call :addcp %%F
goto extlibe
:addcp
set CLASSPATH=%CLASSPATH%;%1
goto :eof
:extlibe
REM *****************
REM SWT Libraries
REM *****************
set CLASSPATH=%CLASSPATH%;libswt\runtime.jar
set CLASSPATH=%CLASSPATH%;libswt\jface.jar
set CLASSPATH=%CLASSPATH%;libswt\win32\swt.jar
set CLASSPATH=%CLASSPATH%;libswt\common.jar
set CLASSPATH=%CLASSPATH%;libswt\commands.jar
REM ******************************************************************
REM ** Set java runtime options **
REM ** Change 128m to higher values in case you run out of memory. **
REM ******************************************************************
set OPT=-Xmx256m -cp %CLASSPATH% -Djava.library.path=libswt\win32\
REM ***************
REM ** Run... **
REM ***************
java %OPT% be.ibridge.kettle.i18n.editor.Translator %1 %2 %3 %4 %5 %6 %7 %8 %9