mirror of
https://github.com/actions/setup-java.git
synced 2025-04-20 09:56:46 +00:00
feat: add support for SapMachine JDK/JRE (#614)
Co-authored-by: Christian Schwaninger <christian.schwaninger@sap.com>
This commit is contained in:
parent
8e04ddff28
commit
7467385c61
9 changed files with 88071 additions and 8 deletions
|
@ -10,6 +10,7 @@ import {SemeruDistribution} from './semeru/installer';
|
|||
import {CorrettoDistribution} from './corretto/installer';
|
||||
import {OracleDistribution} from './oracle/installer';
|
||||
import {DragonwellDistribution} from './dragonwell/installer';
|
||||
import {SapMachineDistribution} from './sapmachine/installer';
|
||||
|
||||
enum JavaDistribution {
|
||||
Adopt = 'adopt',
|
||||
|
@ -23,7 +24,8 @@ enum JavaDistribution {
|
|||
Semeru = 'semeru',
|
||||
Corretto = 'corretto',
|
||||
Oracle = 'oracle',
|
||||
Dragonwell = 'dragonwell'
|
||||
Dragonwell = 'dragonwell',
|
||||
SapMachine = 'sapmachine',
|
||||
}
|
||||
|
||||
export function getJavaDistribution(
|
||||
|
@ -64,6 +66,8 @@ export function getJavaDistribution(
|
|||
return new OracleDistribution(installerOptions);
|
||||
case JavaDistribution.Dragonwell:
|
||||
return new DragonwellDistribution(installerOptions);
|
||||
case JavaDistribution.SapMachine:
|
||||
return new SapMachineDistribution(installerOptions);
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue