From sormuras at gmail.com Tue Jun 2 06:18:48 2020 From: sormuras at gmail.com (Christian Stein) Date: Tue, 2 Jun 2020 08:18:48 +0200 Subject: Provide jdk-matrix.properties file In-Reply-To: References: Message-ID: Hi, two days (and two years) later, via [0], I compile and store a install-jdk.properties file at [1]. The file is still generated by parsing HTML source code and I expect it to fail in the not so distant future. For the time being, it works for JDK 15-ea down to archived JDK 9.0.4. See this proof-of-concept GitHub Action [2] for details. Cheers, Christian [0]: https://github.com/sormuras/bach/commit/b2b7e427634930f94fa4c6b22a6d6ed922fff5cd [1]: https://raw.githubusercontent.com/sormuras/bach/master/install-jdk.properties [2]: https://github.com/sormuras/download-jdk/actions/runs/122194130 On Thu, May 31, 2018 at 2:54 PM Christian Stein wrote: > 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= > __= > > With being a number >= "9" or "EA" > With being "GPL" or "BCL" > With 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: