Skip to content

Commit

Permalink
Make downloadJBR aware of distributionType parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
HeikoBecker committed Dec 5, 2023
1 parent f359ee2 commit fc78c22
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/main/kotlin/de/itemis/mps/gradle/downloadJBR/Plugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,14 @@ open class DownloadJbrProjectPlugin : Plugin<Project> {
// required for running tests. While a little bit larger than jbr_nomod it should cause the least
// surprises when using it as a default.
// see https://github.com/mbeddr/build.publish.jdk/commit/10bbf7d177336179ca189fc8bb4c1262029c69da
val distributionType = if(extension.distributionType == null &&
Regex("""11_0_[0-9][^0-9]""").find(version) != null) {
"jbr"
} else {
"jbr_jcef"
}
val distributionType =
if (extension.distributionType != null) {
extension.distributionType
} else if (Regex("""11_0_[0-9][^0-9]""").find(version) != null) {
"jbr"
} else {
"jbr_jcef"
}

val cpuArch = when(System.getProperty ("os.arch")) {
"aarch64" -> "aarch64"
Expand Down

0 comments on commit fc78c22

Please sign in to comment.