Changeset 10580 in josm for trunk/linux/latest/usr


Ignore:
Timestamp:
2016-07-21T01:57:41+02:00 (8 years ago)
Author:
Don-vip
Message:

see #11390 - switch to Java 8

Location:
trunk/linux/latest/usr
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/linux/latest/usr/bin/josm-latest

    r10430 r10580  
    33set -e
    44
    5 # First, users preference as defined by $JAVA_HOME. Next, use OpenJDK or Oracle's proprietary JDK.
     5# First, the alternative (if known to work) or users preference as defined by $JAVA_HOME. Next, use OpenJDK or Oracle's proprietary JDK.
    66# Override to a specific one using $JAVACMD
     7ALTERNATIVE_JDK="`readlink -n -f /etc/alternatives/java`"
     8
    79# Let's get the current architecture -- needed for multiarchified Java
    810ARCH="`dpkg --print-architecture 2> /dev/null || true`"
     
    1214        JAVA_CMDS="$JAVA_HOME/bin/java"
    1315        JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-8-openjdk/bin/java /usr/lib/jvm/java-8-openjdk-$ARCH/bin/java /usr/lib/jvm/java-8-oracle/bin/java"
    14         JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-7-openjdk/bin/java /usr/lib/jvm/java-7-openjdk-$ARCH/bin/java /usr/lib/jvm/java-7-oracle/bin/java"
    1516        JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-9-openjdk/bin/java /usr/lib/jvm/java-9-openjdk-$ARCH/bin/java /usr/lib/jvm/java-9-oracle/bin/java"
    1617else
    1718        JAVA_CMDS="$JAVA_HOME/bin/java /usr/bin/java"
    1819        JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-8-oracle/bin/java"
    19         JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-7-oracle/bin/java"
    2020        JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-9-oracle/bin/java"
    2121fi
     
    2626
    2727JAVA_OPTS="-Djosm.restart=true -Djosm.home=$HOME/.josm-latest -Djava.net.useSystemProxies=true $JAVA_OPTS"
     28
     29if [ -z "${JAVACMD}" ]; then
     30    for jcmd in $JAVA_CMDS; do
     31        if [ "z$ALTERNATIVE_JDK" = "z`readlink -n -f $jcmd`" ] && [ -z "${JAVACMD}" ]; then
     32            JAVACMD="$jcmd"
     33            break
     34        fi
     35    done
     36fi
    2837
    2938if [ -z "${JAVACMD}" ]; then
  • trunk/linux/latest/usr/share/man/man1/josm-latest.1

    r7843 r10580  
    1 .TH JOSM 1 "December 20, 2014"
     1.TH JOSM 1 "July 21, 2016"
    22.\" Please adjust this date whenever revising the manpage.
    33.SH NAME
     
    77.SH DESCRIPTION
    88.B JOSM
    9 is an editor for OpenStreetMap written in Java 7.
     9is an editor for OpenStreetMap written in Java 8.
    1010.PP
    1111.B OpenStreetMap
Note: See TracChangeset for help on using the changeset viewer.