From a1c1a81c17fd7b17839c7f5ec5da4cd0074d8d6b Mon Sep 17 00:00:00 2001 From: Sergey Mashkov Date: Fri, 13 Nov 2015 10:44:19 +0300 Subject: [PATCH] Create directory before copy file in taskCopyVersionForWrapper --- kobalt/src/Build.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/kobalt/src/Build.kt b/kobalt/src/Build.kt index 3873d7c7..31aeb0e8 100644 --- a/kobalt/src/Build.kt +++ b/kobalt/src/Build.kt @@ -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)