Changeset 18985 in josm for trunk/build.xml


Ignore:
Timestamp:
2024-02-14T18:11:54+01:00 (2 years ago)
Author:
taylor.smock
Message:

Fix #23355: Sanity check JVM arguments on startup

See #17858: JOSM will no longer continue running if the user is on an unsupported
Java version (for this commit, older than Java 11; message indicates Java 17).
This does update the link for Azul from Java 17 to Java 21 as well.

In order to (hopefully) reduce confusion, the webstart and Java update nags will
also be reset in the event that JOSM will exit due to old Java versions. This is
mostly so that users will get the messages to update to OpenWebstart or the
appropriate Java link for their platform and architecture.

Additionally, this will (hopefully) reduce the number of tickets we have to close
due to missing JVM arguments by informing users of the missing arguments at startup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/build.xml

    r18974 r18985  
    7777        <property name="dist-optimized.jar" location="${dist.dir}/josm-custom-optimized.jar"/>
    7878        <property name="dist-sources.jar" location="${dist.dir}/josm-custom-sources.jar"/>
     79        <!-- When incrementing the minimum Java version, don't forget to update the Java versions users will update to
     80             (PlatformHook#getJavaUrl, PlatformHook#startupSanityChecks and PlatformHook#warnSoonToBeUnsupportedJava) -->
    7981        <property name="java.lang.version" value="8" />
    8082        <property name="test.headless" value="true" />
     
    300302        <!-- Java 17 specific files (2021-09 LTS) -->
    301303        <call-javac-compile-mrjar release="17"/>
    302         <!-- Java 18 specific files -->
    303         <call-javac-compile-mrjar release="18"/>
    304         <!-- Java 19 specific files -->
    305         <call-javac-compile-mrjar release="19"/>
    306         <!-- Java 20 specific files -->
    307         <call-javac-compile-mrjar release="20"/>
    308304        <!-- Java 21 specific files (2023-09 LTS) -->
    309305        <call-javac-compile-mrjar release="21"/>
Note: See TracChangeset for help on using the changeset viewer.