summarylogtreecommitdiffstats
path: root/josm.sh
blob: 8bdc4e52611bd012d56d25c9394512b626d1bc0e (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
# Wrapper for JOSM to handle Java options and application restart

while true; do
    JOSM_ARGS=
    [ -f /etc/conf.d/josm ] && . /etc/conf.d/josm
    CLASSPATH="/usr/share/java/josm/josm.jar"
    java ${JOSM_ARGS} -cp "${CLASSPATH}" -Djosm.restart=true org.openstreetmap.josm.gui.MainApplication "$@"
    [ $? -eq 9 ] || break
done