Blob Blame History Raw
#!/bin/sh 
# Simple wrapper script used to start JOSM

# to prefer jre version and not java-devel version
_prefer_jre=1

# Source functions library
if [ -f /usr/share/java-utils/java-functions ] ; then
  . /usr/share/java-utils/java-functions
else
  echo "Can't find functions library, aborting"
  exit 1
fi

# Configuration
MAIN_CLASS="JOSM"
BASE_JARS="josm metadata-extractor2-2 ant signpost-core apache-commons-codec svgsalamander gnu-getopt xmpcore apache-commons-compress jsonp apache-commons-jcs-core"

# Set parameters
set_classpath $BASE_JARS

# Let's start
run "$@"