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

Merge pull request #37 from cy6erGn0m/build-task-failing

Create directory before copy file in taskCopyVersionForWrapper
This commit is contained in:
Cedric Beust 2015-11-13 05:57:55 -08:00
commit 3a9ca294e4

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)