| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d23aed3 commit f0bb916
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13889,6 +13889,9 @@ class MicrosoftDistributions extends base_installer_1.JavaBase { | |||
| 13889 | 13889 | if (!this.stable) { | |
| 13890 | 13890 | throw new Error('Early access versions are not supported'); | |
| 13891 | 13891 | } | |
| 13892 | + if (this.packageType !== 'jdk') { | ||
| 13893 | + throw new Error('Microsoft Build of OpenJDK provides only the `jdk` package type'); | ||
| 13894 | + } | ||
| 13892 | 13895 | const availableVersionsRaw = yield this.getAvailableVersions(); | |
| 13893 | 13896 | const opts = this.getPlatformOption(); | |
| 13894 | 13897 | const availableVersions = availableVersionsRaw.map(item => ({ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -65,6 +65,17 @@ steps: | |||
| 65 | 65 | - run: java -cp java HelloWorldApp | |
| 66 | 66 | ``` | |
| 67 | 67 | ||
| 68 | + ### Microsoft | ||
| 69 | + ```yaml | ||
| 70 | + steps: | ||
| 71 | + - uses: actions/checkout@v2 | ||
| 72 | + - uses: actions/setup-java@v2 | ||
| 73 | + with: | ||
| 74 | + distribution: 'microsoft' | ||
| 75 | + java-version: '11' | ||
| 76 | + - run: java -cp java HelloWorldApp | ||
| 77 | + ``` | ||
| 78 | + | ||
| 68 | 79 | ## Installing custom Java package type | |
| 69 | 80 | ```yaml | |
| 70 | 81 | steps: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -45,6 +45,10 @@ export class MicrosoftDistributions extends JavaBase { | |||
| 45 | 45 | throw new Error('Early access versions are not supported'); | |
| 46 | 46 | } | |
| 47 | 47 | ||
| 48 | + if (this.packageType !== 'jdk') { | ||
| 49 | + throw new Error('Microsoft Build of OpenJDK provides only the `jdk` package type'); | ||
| 50 | + } | ||
| 51 | + | ||
| 48 | 52 | const availableVersionsRaw = await this.getAvailableVersions(); | |
| 49 | 53 | ||
| 50 | 54 | const opts = this.getPlatformOption(); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments