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

Fixx kobalt.properties not included in kobalt-wrapper.jar.

This commit is contained in:
Cedric Beust 2016-05-01 08:09:55 -07:00
parent 13e7aae4e8
commit 6028276688
2 changed files with 4 additions and 1 deletions

View file

@ -205,7 +205,8 @@ fun readVersion() : String {
}
}
@Task(name = "copyVersionForWrapper", runBefore = arrayOf("assemble"), runAfter = arrayOf("compile"), description = "")
@Task(name = "copyVersionForWrapper", runBefore = arrayOf("assemble"),
reverseDependsOn = arrayOf("compile"), description = "")
fun taskCopyVersionForWrapper(project: Project) : TaskResult {
if (project.name == "kobalt-wrapper") {
val toString = "modules/wrapper/kobaltBuild/classes"

View file

@ -54,7 +54,9 @@ class VerifyKobaltZipTest : KobaltTest() {
verifyMainJarFile(ins)
foundJar = true
} else if (entry.name.endsWith("kobalt-wrapper.jar")) {
val ins = zipFile.getInputStream(entry)
foundWrapperJar = true
assertExistsInJarInputStream(JarInputStream(ins), "kobalt.properties")
}
entry = stream.nextEntry
}