From edb9370988c3cf19db1daba9d1f3b37fab06c124 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Wed, 5 Apr 2017 16:08:01 -0700 Subject: [PATCH] copy() now takes a From as first parameter. --- .../src/main/kotlin/com/beust/kobalt/IncludeFromTo.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/IncludeFromTo.kt b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/IncludeFromTo.kt index 2b5d450c..a819d98b 100644 --- a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/IncludeFromTo.kt +++ b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/IncludeFromTo.kt @@ -20,9 +20,9 @@ open class IncludeFromTo { fun to(s: String) = To(s) @Directive - fun copy(from: String, to: To) { - with(File(from)) { - includedFiles.add(IncludedFile(from(parent), to, listOf(IFileSpec.FileSpec(name)))) + fun copy(from: From, to: To) { + with(File(from.path)) { + includedFiles.add(IncludedFile(from, to, listOf(IFileSpec.FileSpec(name)))) } }