Skip to content

Commit

Permalink
checking jar is executable
Browse files Browse the repository at this point in the history
!!release
  • Loading branch information
rtmigo committed Oct 21, 2022
1 parent 645b506 commit 112f7ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

group = "io.github.rtmigo"
version = "0.4.1-SNAPSHOT" //
version = "0.4.1" // -SNAPSHOTjar

repositories {
mavenCentral()
Expand Down
4 changes: 3 additions & 1 deletion src/main/kotlin/tools/Jar.kt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ object Jar {
}
initialized = true
if (jarExeCache == null)
throw IllegalStateException("JAR not found")
throw IllegalStateException("`jar` executable not found")
if (!Path(jarExeCache!!).isExecutable())
throw IllegalStateException("'$jarExeCache' is not executable")
return jarExeCache!!
}
}
Expand Down

0 comments on commit 112f7ed

Please sign in to comment.