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

Create directory before copy file in taskCopyVersionForWrapper

This commit is contained in:
Sergey Mashkov 2015-11-13 10:44:19 +03:00
parent 7ca1a0f3b0
commit a1c1a81c17

View file

@ -131,6 +131,7 @@ fun readVersion() : String {
@com.beust.kobalt.api.annotation.Task(name = "copyVersionForWrapper", runBefore = arrayOf("compile"), description = "")
fun taskCopyVersionForWrapper(project: Project) : TaskResult {
if (project.name == "kobalt-wrapper") {
Files.createDirectories(Paths.get("modules/wrapper/kobaltBuild/classes"))
Files.copy(Paths.get("src/main/resources/kobalt.properties"),
Paths.get("modules/wrapper/kobaltBuild/classes/kobalt.properties"),
StandardCopyOption.REPLACE_EXISTING)