Skip to content

Commit

Permalink
add unix java path check
Browse files Browse the repository at this point in the history
  • Loading branch information
moovida committed Feb 18, 2021
1 parent 7510ad5 commit c7a83b1
Show file tree
Hide file tree
Showing 15 changed files with 130 additions and 15 deletions.
9 changes: 8 additions & 1 deletion extras/deploy/hm-dbviewer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,11 @@ MEM="-Xmx4g"

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DIR=`dirname "$0"`
java -splash:$DIR/imgs/splash_dbviewer.png $MEM -Djava.util.logging.config.file=$DIR/quiet-logging.properties -Djava.library.path=$DIR/natives/ -cp "$DIR/libs/*" org.hortonmachine.database.DatabaseViewer $1

if [ -f "$DIR/jre/bin/java" ]; then
JAVAEXE=$DIR/jre/bin/java
else
JAVAEXE=java
fi

"$JAVAEXE" -splash:$DIR/imgs/splash_dbviewer.png $MEM -Djava.util.logging.config.file=$DIR/quiet-logging.properties -Djava.library.path=$DIR/natives/ -cp "$DIR/libs/*" org.hortonmachine.database.DatabaseViewer $1
10 changes: 9 additions & 1 deletion extras/deploy/hm-geopaparazzi_viewer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,12 @@
MEM="-Xmx2g"

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
java -splash:$DIR/imgs/splash_geopaparazziviewer.png $MEM -Djava.library.path=$DIR/natives/ -cp "$DIR/libs/*" org.hortonmachine.geopaparazzi.GeopaparazziViewer


if [ -f "$DIR/jre/bin/java" ]; then
JAVAEXE=$DIR/jre/bin/java
else
JAVAEXE=java
fi

"$JAVAEXE" -splash:$DIR/imgs/splash_geopaparazziviewer.png $MEM -Djava.library.path=$DIR/natives/ -cp "$DIR/libs/*" org.hortonmachine.geopaparazzi.GeopaparazziViewer
9 changes: 8 additions & 1 deletion extras/deploy/hm-geoscript.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,11 @@ then
SPLASH=-splash:$DIR/imgs/splash_geoscript.png
fi

java $SPLASH $MEM -Djava.util.logging.config.file=$DIR/quiet-logging.properties -cp "$DIR/libs/*" org.hortonmachine.geoscript.GeoscriptConsole $1
if [ -f "$DIR/jre/bin/java" ]; then
JAVAEXE=$DIR/jre/bin/java
else
JAVAEXE=java
fi


"$JAVAEXE" $SPLASH $MEM -Djava.util.logging.config.file=$DIR/quiet-logging.properties -cp "$DIR/libs/*" org.hortonmachine.geoscript.GeoscriptConsole $1
9 changes: 8 additions & 1 deletion extras/deploy/hm-gforms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,11 @@ MEM="-Xmx256m"

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DIR=`dirname "$0"`
java -splash:$DIR/imgs/splash_gforms.png $MEM -Djava.util.logging.config.file=$DIR/quiet-logging.properties -cp "$DIR/libs/*" org.hortonmachine.gforms.FormBuilderController $1
if [ -f "$DIR/jre/bin/java" ]; then
JAVAEXE=$DIR/jre/bin/java
else
JAVAEXE=java
fi


"$JAVAEXE" -splash:$DIR/imgs/splash_gforms.png $MEM -Djava.util.logging.config.file=$DIR/quiet-logging.properties -cp "$DIR/libs/*" org.hortonmachine.gforms.FormBuilderController $1
9 changes: 8 additions & 1 deletion extras/deploy/hm-h2gis-server-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,11 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# possible options are:
# port=9432
# type=web
java $MEM -Djava.library.path=$DIR/natives/ -cp "$DIR/libs/*" org.hortonmachine.dbs.h2gis.H2GisServer $1 $2
if [ -f "$DIR/jre/bin/java" ]; then
JAVAEXE=$DIR/jre/bin/java
else
JAVAEXE=java
fi


"$JAVAEXE" $MEM -Djava.library.path=$DIR/natives/ -cp "$DIR/libs/*" org.hortonmachine.dbs.h2gis.H2GisServer $1 $2
9 changes: 8 additions & 1 deletion extras/deploy/hm-h2gis-tcpserver-stop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,11 @@ MEM="-Xmx4g"
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

# the necessary argument is the port of the running server
java $MEM -Djava.library.path=$DIR/natives/ -cp "$DIR/libs/*" org.h2.tools.Server -tcpShutdown tcp://localhost:$1
if [ -f "$DIR/jre/bin/java" ]; then
JAVAEXE=$DIR/jre/bin/java
else
JAVAEXE=java
fi


"$JAVAEXE" $MEM -Djava.library.path=$DIR/natives/ -cp "$DIR/libs/*" org.h2.tools.Server -tcpShutdown tcp://localhost:$1
10 changes: 9 additions & 1 deletion extras/deploy/hm-lasviewer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,12 @@ MEM="-Xmx4g"

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DIR=`dirname "$0"`
java -splash:$DIR/imgs/splash_lasviewer.png $MEM -Djava.util.logging.config.file=$DIR/quiet-logging.properties -Djava.library.path=$DIR/natives/ -cp "$DIR/libs/*" org.hortonmachine.lidar.LasInfoController $1

if [ -f "$DIR/jre/bin/java" ]; then
JAVAEXE=$DIR/jre/bin/java
else
JAVAEXE=java
fi


"$JAVAEXE" -splash:$DIR/imgs/splash_lasviewer.png $MEM -Djava.util.logging.config.file=$DIR/quiet-logging.properties -Djava.library.path=$DIR/natives/ -cp "$DIR/libs/*" org.hortonmachine.lidar.LasInfoController $1
10 changes: 9 additions & 1 deletion extras/deploy/hm-mapcalc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,12 @@
MEM="-Xmx1g"

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
java $MEM -Djava.util.logging.config.file=$DIR/quiet-logging.properties -Djava.library.path=$DIR/natives/ -cp "$DIR/libs/*" org.hortonmachine.mapcalc.MapcalcController

if [ -f "$DIR/jre/bin/java" ]; then
JAVAEXE=$DIR/jre/bin/java
else
JAVAEXE=java
fi


"$JAVAEXE" $MEM -Djava.util.logging.config.file=$DIR/quiet-logging.properties -Djava.library.path=$DIR/natives/ -cp "$DIR/libs/*" org.hortonmachine.mapcalc.MapcalcController
10 changes: 9 additions & 1 deletion extras/deploy/hm-quickfolder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,12 @@ MEM="-Xmx4g"

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DIR=`dirname "$0"`
java $MEM -Djava.util.logging.config.file=$DIR/quiet-logging.properties -cp "$DIR/libs/*" org.hortonmachine.gui.utils.HMMapframe $@

if [ -f "$DIR/jre/bin/java" ]; then
JAVAEXE=$DIR/jre/bin/java
else
JAVAEXE=java
fi


"$JAVAEXE" $MEM -Djava.util.logging.config.file=$DIR/quiet-logging.properties -cp "$DIR/libs/*" org.hortonmachine.gui.utils.HMMapframe $@
10 changes: 9 additions & 1 deletion extras/deploy/hm-settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,12 @@ MEM="-Xmx256m"

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DIR=`dirname "$0"`
java -splash:$DIR/imgs/splash_settings.png $MEM -Djava.util.logging.config.file=$DIR/quiet-logging.properties -cp "$DIR/libs/*" org.hortonmachine.gui.settings.SettingsController

if [ -f "$DIR/jre/bin/java" ]; then
JAVAEXE=$DIR/jre/bin/java
else
JAVAEXE=java
fi


"$JAVAEXE" -splash:$DIR/imgs/splash_settings.png $MEM -Djava.util.logging.config.file=$DIR/quiet-logging.properties -cp "$DIR/libs/*" org.hortonmachine.gui.settings.SettingsController
10 changes: 9 additions & 1 deletion extras/deploy/hm-simplenww-viewer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,12 @@
MEM="-Xmx2g"

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
java $MEM -Djava.util.logging.config.file=$DIR/quiet-logging.properties -Djava.library.path=$DIR/natives/ -cp "$DIR/libs/*" org.hortonmachine.nww.SimpleNwwViewer

if [ -f "$DIR/jre/bin/java" ]; then
JAVAEXE=$DIR/jre/bin/java
else
JAVAEXE=java
fi


"$JAVAEXE" $MEM -Djava.util.logging.config.file=$DIR/quiet-logging.properties -Djava.library.path=$DIR/natives/ -cp "$DIR/libs/*" org.hortonmachine.nww.SimpleNwwViewer
10 changes: 9 additions & 1 deletion extras/deploy/hm-sld.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,12 @@ MEM="-Xmx4g"

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DIR=`dirname "$0"`
java -splash:$DIR/imgs/splash_sld.png $MEM -Djava.util.logging.config.file=$DIR/quiet-logging.properties -Djava.library.path=$DIR/natives/ -cp "$DIR/libs/*" org.hortonmachine.style.MainController $1

if [ -f "$DIR/jre/bin/java" ]; then
JAVAEXE=$DIR/jre/bin/java
else
JAVAEXE=java
fi


"$JAVAEXE" -splash:$DIR/imgs/splash_sld.png $MEM -Djava.util.logging.config.file=$DIR/quiet-logging.properties -Djava.library.path=$DIR/natives/ -cp "$DIR/libs/*" org.hortonmachine.style.MainController $1
10 changes: 9 additions & 1 deletion extras/deploy/hm-spatialtoolbox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,12 @@
MEM="-Xmx1g"

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
java -splash:$DIR/imgs/splash_spatialtoolbox.png $MEM -Djava.util.logging.config.file=$DIR/quiet-logging.properties -Djava.library.path=$DIR/natives/ -cp "$DIR/libs/*" org.hortonmachine.gui.spatialtoolbox.SpatialtoolboxController $DIR/libs

if [ -f "$DIR/jre/bin/java" ]; then
JAVAEXE=$DIR/jre/bin/java
else
JAVAEXE=java
fi


"$JAVAEXE" -splash:$DIR/imgs/splash_spatialtoolbox.png $MEM -Djava.util.logging.config.file=$DIR/quiet-logging.properties -Djava.library.path=$DIR/natives/ -cp "$DIR/libs/*" org.hortonmachine.gui.spatialtoolbox.SpatialtoolboxController $DIR/libs
10 changes: 9 additions & 1 deletion extras/deploy/hm-utils-ssh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,12 @@
MEM="-Xmx256m"

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
java $MEM -Djava.util.logging.config.file=$DIR/quiet-logging.properties -cp "$DIR/libs/*" org.hortonmachine.gui.utils.SshTesterController

if [ -f "$DIR/jre/bin/java" ]; then
JAVAEXE=$DIR/jre/bin/java
else
JAVAEXE=java
fi


"$JAVAEXE" $MEM -Djava.util.logging.config.file=$DIR/quiet-logging.properties -cp "$DIR/libs/*" org.hortonmachine.gui.utils.SshTesterController
10 changes: 9 additions & 1 deletion extras/deploy/hm-wms2geotiff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,12 @@
MEM="-Xmx4g"

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
java $MEM -Djava.util.logging.config.file=$DIR/quiet-logging.properties -cp "$DIR/libs/*" org.hortonmachine.webmaps.WebMapsController

if [ -f "$DIR/jre/bin/java" ]; then
JAVAEXE=$DIR/jre/bin/java
else
JAVAEXE=java
fi


"$JAVAEXE" $MEM -Djava.util.logging.config.file=$DIR/quiet-logging.properties -cp "$DIR/libs/*" org.hortonmachine.webmaps.WebMapsController

0 comments on commit c7a83b1

Please sign in to comment.