/[xulu]/branches/1.8-gt2-2.6/defaults/startXULU.bat
ViewVC logotype

Contents of /branches/1.8-gt2-2.6/defaults/startXULU.bat

Parent Directory Parent Directory | Revision Log Revision Log


Revision 47 - (show annotations)
Mon Aug 31 14:23:19 2009 UTC (15 years, 3 months ago) by mojays
File MIME type: text/plain
File size: 4064 byte(s)
Branch 1.8-gt2-2.6 (from rev 45) for geotools 2.6 migration
1 @echo off
2 setlocal
3
4 rem ### Root directory of the libs only XULU depends on #####
5 set LIB_ROOT="lib"
6 set DIST_ROOT="dist"
7 rem set DIST_ROOT="lib\xulu"
8
9 rem ### Root directory of the libs also SCHMITZM depends on #####
10 rem --> All libs were moved from SCHMITZM to XULU
11 rem set SCHMITZM_LIB_ROOT="E:\Arbeit\SCHMITZM\Trunk\lib"
12 set SCHMITZM_LIB_ROOT=%LIB_ROOT%
13
14 rem ###################################################################
15 rem ############# Xulu library paths and parameters ###############
16 rem ###################################################################
17 set XULU_LIB=%DIST_ROOT%\xulu.jar
18 if "%1"=="/useXuluJar" set XULU_LIB=%DIST_ROOT%\xulu.jar
19 if "%1"=="/useXuluClasses" set XULU_LIB=classes
20
21 set XULU_REGISTRY=registry.xif
22 set XULU_LANGUAGE=de
23 set XULU_WORK_DIR=C:\
24 set XULU_START_SCRIPTS=
25 set XULU_RESOURCE=resource
26
27 rem ####################################################
28 rem ############# External libraries ###############
29 rem ####################################################
30
31 rem ##### Where to find "Java Advanced Imaging" (and ImageIO) #####
32 set JAI_ROOT=%LIB_ROOT%\jai-1_1_3\lib
33
34 rem ##### Where to find "SCHMITZM library" #####
35 set SCHMITZM_ROOT=%LIB_ROOT%\schmitzm
36
37 rem ##### Where to find "JINI" #####
38 set JINI_ROOT=%LIB_ROOT%\jini
39
40 rem ##### Where to find "R" #####
41 set R_ROOT=%LIB_ROOT%\JavaRInterface
42
43
44 rem ##### combine the external libs #####
45 set SCHMITZM_LIB=%SCHMITZM_ROOT%\schmitzm.jar
46 set JAI_LIB=%JAI_ROOT%\*
47 set JINI_LIB=%JINI_ROOT%\lib\*
48 rem set JINI_LIB=%JINI_ROOT%\lib\*;%JINI_ROOT%\lib-dl\*;%JINI_ROOT%\lib-ext\*
49 set R_LIB=%R_ROOT%\JRI.jar;%R_ROOT%\libjri.so;%R_ROOT%\libR.so
50
51 set LIB_ALL=%XULU_LIB%;%SCHMITZM_LIB%;%JAI_LIB%;%JINI_LIB%;%R_LIB%
52
53
54 rem ####################################################
55 rem ####### External libraries of SCHMITZM #########
56 rem ####################################################
57 set LIB_ROOT=%SCHMITZM_LIB_ROOT%
58
59 rem ##### Where to find "GeoTools" #####
60 set GT_ROOT=%LIB_ROOT%\gt2-2.4.5
61 rem ##### Where to find gt2-arcgrid-2.1.x.jar (from SpearfishDemo) #####
62 set GT_ARCGRID_ROOT=%LIB_ROOT%\geotoolsArcGrid
63
64 rem ##### Where to find "Log4j" #####
65 set LOG4J_ROOT=%LIB_ROOT%\log4j-1.2.14
66
67 rem ##### Where to find "JINI" #####
68 set JINI_ROOT=%LIB_ROOT%\jini
69
70 rem ##### Where to find "jFreeChart" #####
71 set JFREECHART_ROOT=%LIB_ROOT%\jFreeChart
72
73 rem ##### combine the external libs #####
74 set GT_LIB=%GT_ROOT%\*
75 set GT_LIB=%GT_LIB%;%GT_ARCGRID_ROOT%\gt2-arcgrid-2.3.0-M0.jar;%GT_ARCGRID_ROOT%\junit-4.4.jar
76 set LOG4J_LIB=%LOG4J_ROOT%\log4j-1.2.14.jar
77 set JINI_LIB=%JINI_ROOT%\lib\*
78 rem set JINI_LIB=%JINI_ROOT%\lib\*;%JINI_ROOT%\lib-dl\*;%JINI_ROOT%\lib-ext\*
79 set JFREECHART_LIB=%JFREECHART_ROOT%\*
80
81 set LIB_ALL=%LIB_ALL%;%GT_LIB%;%LOG4J_LIB%;%JINI_LIB%;%JFREECHART_LIB%
82
83 rem ##### combine the native libs #####
84 set JAI_NATIVE=%JAI_ROOT%\native_win
85
86 set LIB_NATIVE=%JAI_NATIVE%
87
88
89 rem ##### combine Xulu starting parameters #####
90 set XULU_PARAMS=
91 if not "%XULU_LANGUAGE%"=="" set XULU_PARAMS=%XULU_PARAMS% -l %XULU_LANGUAGE%
92 if not "%XULU_REGISTRY%"=="" set XULU_PARAMS=%XULU_PARAMS% -rf %XULU_REGISTRY%
93 if not "%XULU_MODELS_LIB%"=="" set XULU_PARAMS=%XULU_PARAMS% -d %XULU_MODELS_LIB%
94 if not "%XULU_WORK_DIR%"=="" set XULU_PARAMS=%XULU_PARAMS% -w "%XULU_WORK_DIR%"
95 if not "%XULU_START_SCRIPTS%"=="" set XULU_PARAMS=%XULU_PARAMS% -s "%XULU_START_SCRIPTS%"
96
97
98 rem ##### determine java interpreter #####
99 set JAVA_PRG=start /B javaw
100 rem set JAVA_PRG=java
101 rem ##### for command line help, use java instead of javaw #####
102 if "%1"=="/?" set JAVA_PRG=java
103 if "%1"=="?" set JAVA_PRG=java
104 if "%1"=="-?" set JAVA_PRG=java
105 if "%1"=="--help" set JAVA_PRG=java
106 if "%1"=="-h" set JAVA_PRG=java
107
108
109 rem ##### start Xulu #####
110 %JAVA_PRG% -Xms300M -Xmx1000M -version:1.6 -cp %XULU_RESOURCE%;%LIB_ALL% -Djava.library.path=%LIB_NATIVE% -splash:resource\icons\xulu_start.png edu.bonn.xulu.XuluModellingPlatform %XULU_PARAMS% %*
111
112 endlocal

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26