Skip to content

Commit

Permalink
Update the embedded Java JVM on Windows. Resolves #515.
Browse files Browse the repository at this point in the history
  • Loading branch information
bengtmartensson committed Dec 29, 2023
1 parent 1c225a0 commit 4bf6f5f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 16 deletions.
6 changes: 4 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.nameLowercase>irscrutinizer</project.nameLowercase>
<bundledjdk_url_sans_file>https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.1%2B12/</bundledjdk_url_sans_file>
<bundledjdk_url_sans_file.linux>https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.1%2B12/</bundledjdk_url_sans_file.linux>
<bundledjdk.linux>OpenJDK21U-jdk_x64_linux_hotspot_21.0.1_12.tar.gz</bundledjdk.linux>
<bundledjdk.windows>OpenJDK11U-jdk_x86-32_windows_hotspot_11.0.5_10.zip</bundledjdk.windows>
<bundledjdk_url_sans_file.windows>https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.9%2B9/</bundledjdk_url_sans_file.windows>
<bundledjdk.windows>OpenJDK17U-jdk_x86-32_windows_hotspot_17.0.9_9.zip</bundledjdk.windows>
<bundledjdk_url_sans_file.mac>*** Currently not working ***</bundledjdk_url_sans_file.mac>
<bundledjdk.mac>OpenJDK11U-jdk_x64_mac_hotspot_11.0.5_10.tar.gz</bundledjdk.mac>
<inno_path>${basedir}/Inno_Setup_6/ISCC.exe</inno_path>
<maven.compiler.source>1.8</maven.compiler.source>
Expand Down
30 changes: 16 additions & 14 deletions tools/extract_jdk_url.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,22 @@
</xsl:template>

<xsl:template match="pom:properties">
<xsl:value-of select="pom:bundledjdk_url_sans_file"/>
<xsl:choose>
<xsl:when test="$SYSTEM = 'linux'">
<xsl:value-of select="//pom:project/pom:properties/pom:bundledjdk.linux"/>
</xsl:when>
<xsl:when test="$SYSTEM = 'windows'">
<xsl:value-of select="//pom:project/pom:properties/pom:bundledjdk.windows"/>
</xsl:when>
<xsl:when test="$SYSTEM = 'mac'">
<xsl:value-of select="//pom:project/pom:properties/pom:bundledjdk.mac"/>
</xsl:when>
<xsl:otherwise>
<xsl:text>ERROR</xsl:text>
</xsl:otherwise>
</xsl:choose>
<xsl:when test="$SYSTEM = 'linux'">
<xsl:value-of select="pom:bundledjdk_url_sans_file.linux"/>
<xsl:value-of select="pom:bundledjdk.linux"/>
</xsl:when>
<xsl:when test="$SYSTEM = 'windows'">
<xsl:value-of select="pom:bundledjdk_url_sans_file.windows"/>
<xsl:value-of select="//pom:project/pom:properties/pom:bundledjdk.windows"/>
</xsl:when>
<xsl:when test="$SYSTEM = 'mac'">
<xsl:value-of select="pom:bundledjdk_url_sans_file.mac"/>
<xsl:value-of select="//pom:project/pom:properties/pom:bundledjdk.mac"/>
</xsl:when>
<xsl:otherwise>
<xsl:text>ERROR</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>

0 comments on commit 4bf6f5f

Please sign in to comment.