Skip to content

Commit

Permalink
Merge pull request #152 from mbeddr/bugfix/copy_jbr_dash
Browse files Browse the repository at this point in the history
downloadJbr: add support for Jbr versions with dashes
  • Loading branch information
sergej-koscejev authored Dec 6, 2023
2 parents c3cb3cf + 144ccfe commit 32fc09e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 1.21.2

### Fixed

- `downloadJbr` handles jbr versions with dashes in their name

## 1.21.1

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ plugins {
id("org.jetbrains.kotlinx.binary-compatibility-validator") version "0.13.2"
}

val baseVersion = "1.21.1"
val baseVersion = "1.21.2"

group = "de.itemis.mps"

Expand Down
4 changes: 2 additions & 2 deletions src/main/kotlin/de/itemis/mps/gradle/downloadJBR/Plugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ open class DownloadJbrProjectPlugin : Plugin<Project> {
workingDir = downloadDir
}

if (downloadDir.listFiles { _, name -> name.startsWith("jbr_") }!!.any()) {
if (downloadDir.listFiles { _, name -> name.startsWith("jbr_") || name.startsWith("jbr-") }!!.any()) {
exec {
commandLine("sh", "-c", "mv jbr_* jbr")
commandLine("sh", "-c", "mv jbr* jbr")
workingDir = downloadDir
}
}
Expand Down

0 comments on commit 32fc09e

Please sign in to comment.