1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 00:17:11 -07:00

Run the correct jar name, even if its name was changed.

Fixes https://github.com/cbeust/kobalt/issues/355
This commit is contained in:
Cedric Beust 2017-03-30 14:03:37 -07:00
parent 904c405dd7
commit f29c974c49
3 changed files with 23 additions and 5 deletions

View file

@ -16,6 +16,8 @@ class Archives {
companion object {
@ExportedProjectProperty(doc = "The name of the jar file", type = "String")
const val JAR_NAME = "jarName"
@ExportedProjectProperty(doc = "The name of the a jar file with a main() method", type = "String")
const val JAR_NAME_WITH_MAIN_CLASS = "jarNameWithMainClass"
private val DEFAULT_STREAM_FACTORY = { os : OutputStream -> ZipOutputStream(os) }