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

Annotation of /trunk/defaults/startXULU.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 102 - (hide annotations)
Tue Oct 26 15:07:28 2010 UTC (14 years, 1 month ago) by mojays
File MIME type: application/x-sh
File size: 4588 byte(s)
defaults changed because of new libraries
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 mojays 102 ##### Where to find miscellaneous libraries #####
76     #MISC_ROOT=$LIB_ROOT/misc
77    
78 mojays 17 ##### combine the external libs #####
79     SCHMITZM_LIB=$SCHMITZM_ROOT/*
80     JAI_LIB=$JAI_ROOT/*
81     GT_LIB=$GT_ROOT/*
82     JINI_LIB=$JINI_ROOT/lib/*:$JINI_ROOT/lib-dl/*:$JINI_ROOT/lib-ext/*
83     # set JINI_LIB=$JINI_ROOT/lib/jsk-platform.jar;$JINI_ROOT/lib/tools.jar
84     LOG4J_LIB=$LOG4J_ROOT/log4j-1.2.14.jar
85     #R_LIB=$R_ROOT/JRI.jar;$R_ROOT/libjri.so;$R_ROOT/libR.so # segfaulted on Intrepid
86 mojays 29 JFREECHART_LIB=$JFREECHART_ROOT/*
87 mojays 102 MISC_LIB=$MISC_ROOT/*
88 mojays 17
89 mojays 102 LIB_ALL=$XULU_LIB:$SCHMITZM_LIB:$JAI_LIB:$GT_LIB:$LOG4J_LIB:$JINI_LIB:$JFREECHART_LIB:$MISC_LIB #:$R_LIB
90 mojays 17
91     ##### combine the native libs #####
92     JAI_NATIVE=$JAI_ROOT/native_linux
93    
94     LIB_NATIVE=$JAI_NATIVE
95    
96    
97     ##### combine Xulu starting parameters #####
98    
99     XULU_PARAMS=""
100    
101     if test -n $XULU_LANGUAGE ; then
102     XULU_PARAMS="$XULU_PARAMS -l $XULU_LANGUAGE"
103     fi
104    
105     if test -n $XULU_REGISTRY ; then
106     XULU_PARAMS="$XULU_PARAMS -rf $XULU_REGISTRY"
107     fi
108    
109     if test -n $XULU_MODELS_LIB ;then
110     XULU_PARAMS="$XULU_PARAMS -d $XULU_MODELS_LIB"
111     fi
112    
113     if test -n $XULU_WORK_DIR; then
114     XULU_PARAMS="$XULU_PARAMS -w $XULU_WORK_DIR"
115     fi
116    
117    
118     if test -n $XULU_START_SCRIPTS; then
119     XULU_PARAMS="$XULU_PARAMS -s $XULU_START_SCRIPTS"
120     fi
121    
122     ##### determine java interpreter #####
123     JAVA_PRG=`which java`
124    
125     ##### start Xulu #####
126     # -version:1.6.0_10 funktioniert unter linux nicht
127     $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 $*
128    

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26