Provide jdk-matrix.properties file
Christian Stein
sormuras at gmail.com
Thu May 31 13:04:59 UTC 2018
Hi!
// Already sent this mail to ops at openjdk.java.net
// Dalibor told about this mailing list.
I'm maintaining a script that allows you to install the
"latest and greatest" JDK build from http://jdk.java.net
It's called `install-jdk.sh` and hosted on GitHub at [1]
and some usage documentation is here [2]. Travis CI
included it [3] recently and offers now jdk contants as:
`jdk: openjdk10` , `jdk: openjdk11` or `jdk: openjdk-ea`
At the moment, the script parses the HTML files to
determine the current ea feature number and assumes
"stable" paths to the .tar.gz files within http://jdk.java.net
infrastructure. It works -- but I had to adopt to file tree
changes from time to time.
It would be more stable if the was a "matrix properties"
file at the root, like http://jdk.java.net/jdk-matrix.properties
with following content:
matrix_generated_on=<date>
<feature>_<license>_<os>=<uri>
With <feature> being a number >= "9" or "EA"
With <license> being "GPL" or "BCL"
With <os> being "LINUX" or "OSX" and others...
For example:
# Java Development Kit builds from Oracle -- http://jdk.java.net
matrix_generated_on=2018_05_31
# FEATURE NUMBER = 9
9_GPL_LINUX =
https://download.java.net/java/GA/jdk9/9.0.4/binaries/openjdk-9.0.4_linux-x64_bin.tar.gz
9_GPL_OSX=
https://download.java.net/java/GA/jdk9/9.0.4/binaries/openjdk-9.0.4_osx-x64_bin.tar.gz
# FEATURE NUMBER = 10
10_GPL_LINUX=
https://download.java.net/java/GA/jdk10/10.0.1/fb4372174a714e6b8c52526dc134031e/10/openjdk-10.0.1_linux-x64_bin.tar.gz
10_GPL_OSX=
https://download.java.net/java/GA/jdk10/10.0.1/fb4372174a714e6b8c52526dc134031e/10/openjdk-10.0.1_osx-x64_bin.tar.gz
# FEATURE NUMBER = 11
11_GPL_LINUX=
https://download.java.net/java/early_access/jdk11/15/GPL/openjdk-11-ea+15_linux-x64_bin.tar.gz
11_GPL_OSX=
https://download.java.net/java/early_access/jdk11/15/GPL/openjdk-11-ea+15_osx-x64_bin.tar.gz
11_BCL_LINUX=
https://download.java.net/java/early_access/jdk11/15/BCL/jdk-11-ea+15_linux-x64_bin.tar.gz
11_BCL_OSX=
https://download.java.net/java/early_access/jdk11/15/BCL/jdk-11-ea+15_osx-x64_bin.tar.gz
# FEATURE NUMBER = "EA"
EA_GPL_LINUX=
https://download.java.net/java/early_access/jdk11/15/GPL/openjdk-11-ea+15_linux-x64_bin.tar.gz
EA_GPL_OSX=
https://download.java.net/java/early_access/jdk11/15/GPL/openjdk-11-ea+15_osx-x64_bin.tar.gz
EA_BCL_LINUX=
https://download.java.net/java/early_access/jdk11/15/BCL/jdk-11-ea+15_linux-x64_bin.tar.gz
EA_BCL_OSX=
https://download.java.net/java/early_access/jdk11/15/BCL/jdk-11-ea+15_osx-x64_bin.tar.gz
Such a matrix file could be evaluated (read sourced) by
external build support tools more in more stable manner.
Cheers,
Christian
[1] https://github.com/sormuras/bach/blob/master/install-jdk.sh
[2] https://github.com/sormuras/bach#install-jdksh
[3] https://sormuras.github.io/blog/2018-05-31-jdk-matrix.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/web-discuss/attachments/20180531/e208167a/attachment-0001.html>
More information about the web-discuss
mailing list