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

Annotation of /trunk.bakup/defaults/startXULU.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 17 - (hide annotations)
Thu Feb 26 21:06:38 2009 UTC (15 years, 9 months ago) by mojays
Original Path: trunk/defaults/startXULU.sh
File MIME type: application/x-sh
File size: 4862 byte(s)
Linux shell script "startXULU.sh" converted to UNIX format
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     GT_ROOT=$LIB_ROOT/gt2-2.4.4
62    
63     ##### Where to find gt2-arcgrid-2.1.x.jar (from SpearfishDemo) #####
64     GT_ARCGRID_ROOT=$LIB_ROOT/geotoolsArcGrid
65    
66     ##### Where to find "Adagios" #####
67     ADAGIOS_ROOT=$LIB_ROOT/Adagios
68    
69     ##### Where to find "Log4j" #####
70     LOG4J_ROOT=$LIB_ROOT/log4j-1.2.14
71    
72     ##### Where to find "JINI" #####
73     JINI_ROOT=$LIB_ROOT/jini
74    
75     ##### Where to find "R" #####
76     #R_ROOT=$LIB_ROOT/JavaRInterface
77    
78     ##### Where to find "jFreeChart" #####
79     JFREECHART_ROOT=$LIB_ROOT/jFreeChart
80    
81     ##### combine the external libs #####
82     SCHMITZM_LIB=$SCHMITZM_ROOT/*
83     JAI_LIB=$JAI_ROOT/*
84     GT_LIB=$GT_ROOT/*
85     GT_LIB=$GT_LIB:$GT_ARCGRID_ROOT/gt2-arcgrid-2.3.0-M0.jar:$GT_ARCGRID_ROOT/junit-4.4.jar
86     ADAGIOS_LIB=$ADAGIOS_ROOT/AdagiosJavaLib.jar
87     JINI_LIB=$JINI_ROOT/lib/*:$JINI_ROOT/lib-dl/*:$JINI_ROOT/lib-ext/*
88     # set JINI_LIB=$JINI_ROOT/lib/jsk-platform.jar;$JINI_ROOT/lib/tools.jar
89     LOG4J_LIB=$LOG4J_ROOT/log4j-1.2.14.jar
90     #R_LIB=$R_ROOT/JRI.jar;$R_ROOT/libjri.so;$R_ROOT/libR.so # segfaulted on Intrepid
91     JFREECHART_LIB=$JFREECHART_ROOT/jfreechart-1.0.6.jar:$JFREECHART_ROOT/jcommon-1.0.10.jar
92    
93     LIB_ALL=$XULU_LIB:$SCHMITZM_LIB:$JAI_LIB:$GT_LIB:$ADAGIOS_LIB:$LOG4J_LIB:$JINI_LIB:$JFREECHART_LIB #:$R_LIB
94    
95     ##### combine the native libs #####
96     JAI_NATIVE=$JAI_ROOT/native_linux
97    
98     LIB_NATIVE=$JAI_NATIVE
99    
100    
101     ##### combine Xulu starting parameters #####
102    
103     XULU_PARAMS=""
104    
105     if test -n $XULU_LANGUAGE ; then
106     XULU_PARAMS="$XULU_PARAMS -l $XULU_LANGUAGE"
107     fi
108    
109     if test -n $XULU_REGISTRY ; then
110     XULU_PARAMS="$XULU_PARAMS -rf $XULU_REGISTRY"
111     fi
112    
113     if test -n $XULU_MODELS_LIB ;then
114     XULU_PARAMS="$XULU_PARAMS -d $XULU_MODELS_LIB"
115     fi
116    
117     if test -n $XULU_WORK_DIR; then
118     XULU_PARAMS="$XULU_PARAMS -w $XULU_WORK_DIR"
119     fi
120    
121    
122     if test -n $XULU_START_SCRIPTS; then
123     XULU_PARAMS="$XULU_PARAMS -s $XULU_START_SCRIPTS"
124     fi
125    
126     ##### determine java interpreter #####
127     JAVA_PRG=`which java`
128    
129     ##### start Xulu #####
130     # -version:1.6.0_10 funktioniert unter linux nicht
131     $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 $*
132    

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26