Skip to content

Commit c5a905e

Browse files
authored
Add support for OpenJDK JDK 25 Early-Access Builds (#63)
https://jdk.java.net/25/
1 parent 47103e0 commit c5a905e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/openjdk.bash

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,16 @@ INDEX_21="${TEMP_DIR}/index-21.html"
3838
INDEX_22="${TEMP_DIR}/index-22.html"
3939
INDEX_23="${TEMP_DIR}/index-23.html"
4040
INDEX_24="${TEMP_DIR}/index-24.html"
41+
INDEX_25="${TEMP_DIR}/index-25.html"
4142

4243
download_file 'http://jdk.java.net/archive/' "${INDEX_ARCHIVE}"
4344
download_file 'http://jdk.java.net/21/' "${INDEX_21}"
4445
download_file 'http://jdk.java.net/22/' "${INDEX_22}"
4546
download_file 'http://jdk.java.net/23/' "${INDEX_23}"
4647
download_file 'http://jdk.java.net/24/' "${INDEX_24}"
48+
download_file 'http://jdk.java.net/25/' "${INDEX_25}"
4749

48-
URLS=$(grep -h -o -E 'href="https://download.java.net/java/.*/[^/]*\.(tar\.gz|zip)"' "${INDEX_ARCHIVE}" "${INDEX_21}" "${INDEX_22}" "${INDEX_23}" "${INDEX_24}" | perl -pe 's/href="(.+)"/$1/g' | sort -V)
50+
URLS=$(grep -h -o -E 'href="https://download.java.net/java/.*/[^/]*\.(tar\.gz|zip)"' "${INDEX_ARCHIVE}" "${INDEX_21}" "${INDEX_22}" "${INDEX_23}" "${INDEX_24}" "${INDEX_25}" | perl -pe 's/href="(.+)"/$1/g' | sort -V)
4951
for URL in ${URLS}
5052
do
5153
FILE="$(perl -pe 's/https.*\/([^\/]+)/$1/g' <<< "${URL}")"

0 commit comments

Comments
 (0)