mirror of
https://github.com/actions/setup-java.git
synced 2026-07-02 02:11:46 +00:00
Compare commits
2 Commits
0211fbacbf
...
3cfea60ff2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3cfea60ff2 | ||
|
|
205bf16cc8 |
2
dist/setup/index.js
vendored
2
dist/setup/index.js
vendored
@ -124231,12 +124231,10 @@ class DragonwellDistribution extends base_installer_1.JavaBase {
|
|||||||
}
|
}
|
||||||
// Some version of Dragonwell JDK are numerated with help of non-semver notation (more then 3 digits).
|
// Some version of Dragonwell JDK are numerated with help of non-semver notation (more then 3 digits).
|
||||||
// Common practice is to transform excess digits to the so-called semver build part, which is prefixed with the plus sign, to be able to operate with them using semver tools.
|
// Common practice is to transform excess digits to the so-called semver build part, which is prefixed with the plus sign, to be able to operate with them using semver tools.
|
||||||
if (jdkVersion.split('.').length > 3) {
|
|
||||||
const jdkVersionNums = jdkVersion
|
const jdkVersionNums = jdkVersion
|
||||||
.replace('+', '.')
|
.replace('+', '.')
|
||||||
.split('.');
|
.split('.');
|
||||||
jdkVersion = (0, util_1.convertVersionToSemver)(`${jdkVersionNums.slice(0, 3).join('.')}.${jdkVersionNums[jdkVersionNums.length - 1]}`);
|
jdkVersion = (0, util_1.convertVersionToSemver)(`${jdkVersionNums.slice(0, 3).join('.')}.${jdkVersionNums[jdkVersionNums.length - 1]}`);
|
||||||
}
|
|
||||||
for (const edition in archMap) {
|
for (const edition in archMap) {
|
||||||
eligibleVersions.push({
|
eligibleVersions.push({
|
||||||
os: platform,
|
os: platform,
|
||||||
|
|||||||
@ -149,7 +149,6 @@ export class DragonwellDistribution extends JavaBase {
|
|||||||
|
|
||||||
// Some version of Dragonwell JDK are numerated with help of non-semver notation (more then 3 digits).
|
// Some version of Dragonwell JDK are numerated with help of non-semver notation (more then 3 digits).
|
||||||
// Common practice is to transform excess digits to the so-called semver build part, which is prefixed with the plus sign, to be able to operate with them using semver tools.
|
// Common practice is to transform excess digits to the so-called semver build part, which is prefixed with the plus sign, to be able to operate with them using semver tools.
|
||||||
if (jdkVersion.split('.').length > 3) {
|
|
||||||
const jdkVersionNums: string[] = jdkVersion
|
const jdkVersionNums: string[] = jdkVersion
|
||||||
.replace('+', '.')
|
.replace('+', '.')
|
||||||
.split('.');
|
.split('.');
|
||||||
@ -158,7 +157,6 @@ export class DragonwellDistribution extends JavaBase {
|
|||||||
jdkVersionNums[jdkVersionNums.length - 1]
|
jdkVersionNums[jdkVersionNums.length - 1]
|
||||||
}`
|
}`
|
||||||
);
|
);
|
||||||
}
|
|
||||||
|
|
||||||
for (const edition in archMap) {
|
for (const edition in archMap) {
|
||||||
eligibleVersions.push({
|
eligibleVersions.push({
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user