Revision 41347 trunk/org.gvsig.desktop/org.gvsig.desktop.framework/org.gvsig.andami/src/main/resources-application/gvSIG.sh
gvSIG.sh | ||
---|---|---|
91 | 91 |
# gvSIG home folder |
92 | 92 |
export GVSIG_HOME_FOLDER="$HOME/$GVSIG_APPLICATION_NAME" |
93 | 93 |
|
94 |
#################### |
|
95 |
# Load config file # |
|
96 |
#################### |
|
97 |
|
|
98 |
if [ -f "$GVSIG_INSTALL_FOLDER/gvSIG.config" ] ; then |
|
99 |
. "$GVSIG_INSTALL_FOLDER/gvSIG.config" |
|
100 |
fi |
|
101 |
|
|
94 | 102 |
################# |
95 | 103 |
# Logger config # |
96 | 104 |
################# |
... | ... | |
103 | 111 |
shift |
104 | 112 |
echo "$LOGGER_LEVEL launch $@" |
105 | 113 |
if [ ! -f "$LOGGER_FILE" ] ; then |
106 |
mkdir -p "$(dirname $LOGGER_FILE)" |
|
114 |
LOGGER_TEMP1=$(dirname "$LOGGER_FILE") |
|
115 |
mkdir -p "$LOGGER_TEMP1" |
|
107 | 116 |
fi |
108 | 117 |
echo "$LOGGER_LEVEL launch $@" >> "$LOGGER_FILE" |
109 | 118 |
} |
... | ... | |
237 | 246 |
################################################################### |
238 | 247 |
|
239 | 248 |
# gvSIG native libraries location |
240 |
export GVSIG_NATIVE_LIBS="${GVSIG_INSTALL_FOLDER}/native":"${HOME}/.depman/lib"
|
|
249 |
export GVSIG_NATIVE_LIBS="${GVSIG_INSTALL_FOLDER}/native:${HOME}/.depman/lib"
|
|
241 | 250 |
|
242 | 251 |
# Native libraries path |
243 | 252 |
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$GVSIG_NATIVE_LIBS" |
... | ... | |
340 | 349 |
-Xmx${GVSIG_MAX_MEM} \ |
341 | 350 |
-XX:MaxPermSize=${GVSIG_MAX_PERM_SIZE} \ |
342 | 351 |
$DEBUG_OPTIONS \ |
343 |
-Djava.library.path="${GVSIG_NATIVE_LIBS}":/usr/lib \
|
|
352 |
-Djava.library.path=\"${GVSIG_NATIVE_LIBS}\":/usr/lib \
|
|
344 | 353 |
-cp $GVSIG_CLASSPATH \ |
354 |
$GVSIG_JAVA_PARAMS \ |
|
345 | 355 |
$GVSIG_LAUNCHER $GVSIG_PARAMS |
346 | 356 |
|
347 |
${JAVA} \ |
|
357 |
eval ${JAVA} \
|
|
348 | 358 |
$FORCE_JAVA_32BITS \ |
349 | 359 |
-Xms${GVSIG_INITIAL_MEM} \ |
350 | 360 |
-Xmx${GVSIG_MAX_MEM} \ |
351 | 361 |
-XX:MaxPermSize=${GVSIG_MAX_PERM_SIZE} \ |
352 | 362 |
$DEBUG_OPTIONS \ |
353 |
-Djava.library.path="${GVSIG_NATIVE_LIBS}":/usr/lib \
|
|
363 |
-Djava.library.path=\"${GVSIG_NATIVE_LIBS}\":/usr/lib \
|
|
354 | 364 |
-cp $GVSIG_CLASSPATH \ |
365 |
$GVSIG_JAVA_PARAMS \ |
|
355 | 366 |
$GVSIG_LAUNCHER $GVSIG_PARAMS |
Also available in: Unified diff