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

copy() now takes a From as first parameter.

This commit is contained in:
Cedric Beust 2017-04-05 16:08:01 -07:00
parent 856b61678d
commit edb9370988

View file

@ -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))))
}
}