Fixed adopt toolchain folder

This commit is contained in:
Marcel 2021-04-09 14:43:29 +02:00
commit 41f7318506
No known key found for this signature in database
GPG key ID: 45EB4FD5C25A5098
3 changed files with 25 additions and 7 deletions

4
dist/setup/index.js vendored
View file

@ -26910,7 +26910,7 @@ var AdoptImplementation;
class AdoptDistribution extends base_installer_1.JavaBase {
constructor(installerOptions, jvmImpl) {
super(`Adopt-${jvmImpl}`, installerOptions);
this.jvmImpl = jvmImpl.toLowerCase();
this.jvmImpl = jvmImpl;
}
findPackageForDownload(version) {
return __awaiter(this, void 0, void 0, function* () {
@ -26981,7 +26981,7 @@ class AdoptDistribution extends base_installer_1.JavaBase {
`architecture=${arch}`,
`image_type=${imageType}`,
`release_type=${releaseType}`,
`jvm_impl=${this.jvmImpl}`
`jvm_impl=${this.jvmImpl.toLowerCase()}`
].join('&');
// need to iterate through all pages to retrieve the list of all versions
// Adopt API doesn't provide way to retrieve the count of pages to iterate so infinity loop