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:
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)
|
||||
|
||||
@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))))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue