Skip to content

Commit

Permalink
Issue jawi#143: fixes for the Un*x run-scripts. Thanks to R.Diez for …
Browse files Browse the repository at this point in the history
…mentioning this.
  • Loading branch information
Jan Willem Janssen committed Jan 26, 2013
1 parent ad6df6f commit 4ba27d0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ols.distribution/src/main/resources/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

rem Simple check to see whether the "magic" Java binary is available on our path;
# Simple check to see whether the "magic" Java binary is available on our path;
java -version 1>/dev/null 2>&1
if [ "$?" -ne "0" ]; then
echo It appears that Java is not installed on this computer. You
Expand All @@ -13,9 +13,9 @@ BASEDIR=$(dirname -- "${0}")
# all paths are used relatively from the base dir...
PLUGINDIR=$BASEDIR/plugins
CLASSPATH=$BASEDIR/bin/*
rem give the client roughly 1gigabyte of memory
# give the client roughly 1gigabyte of memory
MEMSETTINGS=-Xmx1024m
rem <https://github.com/jawi/ols/issues/125>
SYSPROPS=-Djna.nosys=true -Dnl.lxtreme.ols.bundle.dir="$PLUGINDIR" -DPlastic.defaultTheme=SkyBluer
# see: <https://github.com/jawi/ols/issues/125> & <https://github.com/jawi/ols/issues/143>
SYSPROPS="-Djna.nosys=true -Dnl.lxtreme.ols.bundle.dir=\"$PLUGINDIR\" -DPlastic.defaultTheme=SkyBluer"

java $MEMSETTINGS $SYSPROPS -cp "$CLASSPATH" nl.lxtreme.ols.runner.Runner
java "$MEMSETTINGS" "$SYSPROPS" -cp "$CLASSPATH" nl.lxtreme.ols.runner.Runner

0 comments on commit 4ba27d0

Please sign in to comment.