/[xulu]/trunk/defaults/startXULU.bat
ViewVC logotype

Annotation of /trunk/defaults/startXULU.bat

Parent Directory Parent Directory | Revision Log Revision Log


Revision 130 - (hide annotations)
Mon Feb 15 16:10:57 2016 UTC (8 years, 10 months ago) by mojays
File MIME type: text/plain
File size: 3946 byte(s)
BugFix: RasterCalculator plugin configuration file referred to out-dated schmitzm package
BugFix: RasterFiler in schmitzm-gt (avoid exception for horizontal raster border area)
1 mojays 2 @echo off
2     setlocal
3    
4 mojays 5 rem ### Root directory of the libs only XULU depends on #####
5     set LIB_ROOT="lib"
6 mojays 14 set DIST_ROOT="dist"
7     rem set DIST_ROOT="lib\xulu"
8 mojays 2
9 mojays 5 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 mojays 2 rem ###################################################################
15     rem ############# Xulu library paths and parameters ###############
16     rem ###################################################################
17 mojays 14 set XULU_LIB=%DIST_ROOT%\xulu.jar
18     if "%1"=="/useXuluJar" set XULU_LIB=%DIST_ROOT%\xulu.jar
19 mojays 2 if "%1"=="/useXuluClasses" set XULU_LIB=classes
20    
21 mojays 5 set XULU_REGISTRY=registry.xif
22 mojays 130 set XULU_LANGUAGE=
23 mojays 2 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 mojays 5 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 mojays 102 rem ##### Where to find miscellaneous libraries #####
44     set MISC_ROOT=%LIB_ROOT%\misc
45 mojays 5
46 mojays 102
47 mojays 5 rem ##### combine the external libs #####
48 mojays 53 set SCHMITZM_LIB=%SCHMITZM_ROOT%\*
49 mojays 5 set JAI_LIB=%JAI_ROOT%\*
50     set JINI_LIB=%JINI_ROOT%\lib\*
51     rem set JINI_LIB=%JINI_ROOT%\lib\*;%JINI_ROOT%\lib-dl\*;%JINI_ROOT%\lib-ext\*
52     set R_LIB=%R_ROOT%\JRI.jar;%R_ROOT%\libjri.so;%R_ROOT%\libR.so
53 mojays 104 set MISC_LIB=%MISC_ROOT%\*
54 mojays 5
55 mojays 102 set LIB_ALL=%XULU_LIB%;%SCHMITZM_LIB%;%JAI_LIB%;%JINI_LIB%;%R_LIB%;%MISC_LIB%
56 mojays 5
57    
58     rem ####################################################
59     rem ####### External libraries of SCHMITZM #########
60     rem ####################################################
61     set LIB_ROOT=%SCHMITZM_LIB_ROOT%
62    
63 mojays 2 rem ##### Where to find "GeoTools" #####
64 mojays 117 set GT_ROOT=%LIB_ROOT%\geotools
65 mojays 2
66     rem ##### Where to find "Log4j" #####
67     set LOG4J_ROOT=%LIB_ROOT%\log4j-1.2.14
68    
69     rem ##### Where to find "JINI" #####
70     set JINI_ROOT=%LIB_ROOT%\jini
71    
72     rem ##### Where to find "jFreeChart" #####
73     set JFREECHART_ROOT=%LIB_ROOT%\jFreeChart
74    
75     rem ##### combine the external libs #####
76     set GT_LIB=%GT_ROOT%\*
77     set LOG4J_LIB=%LOG4J_ROOT%\log4j-1.2.14.jar
78 mojays 5 set JINI_LIB=%JINI_ROOT%\lib\*
79     rem set JINI_LIB=%JINI_ROOT%\lib\*;%JINI_ROOT%\lib-dl\*;%JINI_ROOT%\lib-ext\*
80 mojays 29 set JFREECHART_LIB=%JFREECHART_ROOT%\*
81 mojays 2
82 mojays 22 set LIB_ALL=%LIB_ALL%;%GT_LIB%;%LOG4J_LIB%;%JINI_LIB%;%JFREECHART_LIB%
83 mojays 2
84     rem ##### combine the native libs #####
85     set JAI_NATIVE=%JAI_ROOT%\native_win
86    
87     set LIB_NATIVE=%JAI_NATIVE%
88    
89    
90     rem ##### combine Xulu starting parameters #####
91     set XULU_PARAMS=
92     if not "%XULU_LANGUAGE%"=="" set XULU_PARAMS=%XULU_PARAMS% -l %XULU_LANGUAGE%
93     if not "%XULU_REGISTRY%"=="" set XULU_PARAMS=%XULU_PARAMS% -rf %XULU_REGISTRY%
94     if not "%XULU_MODELS_LIB%"=="" set XULU_PARAMS=%XULU_PARAMS% -d %XULU_MODELS_LIB%
95     if not "%XULU_WORK_DIR%"=="" set XULU_PARAMS=%XULU_PARAMS% -w "%XULU_WORK_DIR%"
96     if not "%XULU_START_SCRIPTS%"=="" set XULU_PARAMS=%XULU_PARAMS% -s "%XULU_START_SCRIPTS%"
97    
98    
99     rem ##### determine java interpreter #####
100     set JAVA_PRG=start /B javaw
101     rem set JAVA_PRG=java
102     rem ##### for command line help, use java instead of javaw #####
103     if "%1"=="/?" set JAVA_PRG=java
104     if "%1"=="?" set JAVA_PRG=java
105     if "%1"=="-?" set JAVA_PRG=java
106     if "%1"=="--help" set JAVA_PRG=java
107     if "%1"=="-h" set JAVA_PRG=java
108    
109    
110     rem ##### start Xulu #####
111 mojays 117 %JAVA_PRG% -Xms300M -Xmx1000M -cp %XULU_RESOURCE%;%LIB_ALL% -Djava.library.path=%LIB_NATIVE% -splash:resource\icons\xulu_start.png edu.bonn.xulu.XuluModellingPlatform %XULU_PARAMS% %*
112 mojays 2
113     endlocal

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26