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

Annotation of /trunk/defaults/startXULU.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 92 - (hide annotations)
Thu Jul 22 07:23:12 2010 UTC (14 years, 4 months ago) by alfonx
File MIME type: application/x-sh
File size: 4479 byte(s)
updated start script to use GT 2.6 and removed any references to old arcgrid jar
1 mojays 17 #!/bin/bash
2     #############################################################################
3     # XULU Start Script - This file is part of the eXtendable Unified Land Use
4     # Modelling Platform (XULU)
5     #############################################################################
6     #
7     #    This library is free software; you can redistribute it and/or modify it
8     # under the terms of the GNU Lesser General Public License as published by the
9     # Free Software Foundation; either version 2.1 of the License, or (at your
10     # option) any later version.
11     #    This library is distributed in the hope that it will be useful, but
12     # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13     # FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
14     # for more details.
15     #    You should have received a copy of the GNU Lesser General Public License
16     # along with this library; if not, write to the Free Software Foundation, Inc.,
17     # 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
18     #
19     #    Diese Bibliothek ist freie Software; Sie dürfen sie unter den Bedingungen
20     # der GNU Lesser General Public License, wie von der Free Software Foundation
21     # veröffentlicht, weiterverteilen und/oder modifizieren; entweder gemäß Version
22     # 2.1 der Lizenz oder (nach Ihrer Option) jeder späteren Version.
23     #    Diese Bibliothek wird in der Hoffnung weiterverbreitet, daß sie nützlich
24     # sein wird, jedoch OHNE IRGENDEINE GARANTIE, auch ohne die implizierte Garantie
25     # der MARKTREIFE oder der VERWENDBARKEIT FÜR EINEN BESTIMMTEN ZWECK. Mehr
26     # Details finden Sie in der GNU Lesser General Public License.
27     #    Sie sollten eine Kopie der GNU Lesser General Public License zusammen mit
28     # dieser Bibliothek erhalten haben; falls nicht, schreiben Sie an die Free
29     # Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA.
30     #
31    
32     ####################################################################
33     ############# Xulu library paths and parameters ###############
34     ###################################################################
35    
36     LIB_ROOT="lib"
37     DIST_ROOT="dist"
38     #DIST_ROOT="lib/xulu"
39    
40     XULU_LIB=$DIST_ROOT/xulu.jar
41     if [ "$1" == "-useXuluJar" ]; then XULU_LIB=$DIST_ROOT/xulu.jar ; fi
42     if [ "$1" == "-useXuluClasses" ]; then XULU_LIB=classes ; fi
43    
44     XULU_REGISTRY=./registry_ProxyGrid.xif
45     XULU_LANGUAGE=de
46     XULU_WORK_DIR=
47     XULU_START_SCRIPTS=
48     XULU_RESOURCE=resource
49    
50     ####################################################
51     ############# External libraries ###############
52     ####################################################
53    
54     ##### Where to find "schmitzm" (before Geotools!) #####
55     SCHMITZM_ROOT=$LIB_ROOT/schmitzm
56    
57     ##### Where to find "Java Advanced Imaging" #####
58     JAI_ROOT=$LIB_ROOT/jai-1_1_3/lib
59    
60     ##### Where to find "GeoTools" #####
61 alfonx 92 GT_ROOT=$LIB_ROOT/gt2-2.6
62 mojays 17
63     ##### Where to find "Log4j" #####
64     LOG4J_ROOT=$LIB_ROOT/log4j-1.2.14
65    
66     ##### Where to find "JINI" #####
67     JINI_ROOT=$LIB_ROOT/jini
68    
69     ##### Where to find "R" #####
70     #R_ROOT=$LIB_ROOT/JavaRInterface
71    
72     ##### Where to find "jFreeChart" #####
73     JFREECHART_ROOT=$LIB_ROOT/jFreeChart
74    
75     ##### combine the external libs #####
76     SCHMITZM_LIB=$SCHMITZM_ROOT/*
77     JAI_LIB=$JAI_ROOT/*
78     GT_LIB=$GT_ROOT/*
79     JINI_LIB=$JINI_ROOT/lib/*:$JINI_ROOT/lib-dl/*:$JINI_ROOT/lib-ext/*
80     # set JINI_LIB=$JINI_ROOT/lib/jsk-platform.jar;$JINI_ROOT/lib/tools.jar
81     LOG4J_LIB=$LOG4J_ROOT/log4j-1.2.14.jar
82     #R_LIB=$R_ROOT/JRI.jar;$R_ROOT/libjri.so;$R_ROOT/libR.so # segfaulted on Intrepid
83 mojays 29 JFREECHART_LIB=$JFREECHART_ROOT/*
84 mojays 17
85 mojays 22 LIB_ALL=$XULU_LIB:$SCHMITZM_LIB:$JAI_LIB:$GT_LIB:$LOG4J_LIB:$JINI_LIB:$JFREECHART_LIB #:$R_LIB
86 mojays 17
87     ##### combine the native libs #####
88     JAI_NATIVE=$JAI_ROOT/native_linux
89    
90     LIB_NATIVE=$JAI_NATIVE
91    
92    
93     ##### combine Xulu starting parameters #####
94    
95     XULU_PARAMS=""
96    
97     if test -n $XULU_LANGUAGE ; then
98     XULU_PARAMS="$XULU_PARAMS -l $XULU_LANGUAGE"
99     fi
100    
101     if test -n $XULU_REGISTRY ; then
102     XULU_PARAMS="$XULU_PARAMS -rf $XULU_REGISTRY"
103     fi
104    
105     if test -n $XULU_MODELS_LIB ;then
106     XULU_PARAMS="$XULU_PARAMS -d $XULU_MODELS_LIB"
107     fi
108    
109     if test -n $XULU_WORK_DIR; then
110     XULU_PARAMS="$XULU_PARAMS -w $XULU_WORK_DIR"
111     fi
112    
113    
114     if test -n $XULU_START_SCRIPTS; then
115     XULU_PARAMS="$XULU_PARAMS -s $XULU_START_SCRIPTS"
116     fi
117    
118     ##### determine java interpreter #####
119     JAVA_PRG=`which java`
120    
121     ##### start Xulu #####
122     # -version:1.6.0_10 funktioniert unter linux nicht
123     $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 $*
124    

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26