mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
copy() now takes a From as first parameter.
This commit is contained in:
parent
856b61678d
commit
edb9370988
1 changed files with 3 additions and 3 deletions
|
@ -20,9 +20,9 @@ open class IncludeFromTo {
|
||||||
fun to(s: String) = To(s)
|
fun to(s: String) = To(s)
|
||||||
|
|
||||||
@Directive
|
@Directive
|
||||||
fun copy(from: String, to: To) {
|
fun copy(from: From, to: To) {
|
||||||
with(File(from)) {
|
with(File(from.path)) {
|
||||||
includedFiles.add(IncludedFile(from(parent), to, listOf(IFileSpec.FileSpec(name))))
|
includedFiles.add(IncludedFile(from, to, listOf(IFileSpec.FileSpec(name))))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue