Skip to content

Tasks | Misc file tasks

Oleg edited this page May 16, 2017 · 1 revision

writeText task

Writes text string to a current target (the target which the current rule is started for).

rules [
    "readme.txt" ..> writeText "This is new readme file and it was intentionally left blank"
]

copyFrom task

Copies the file contents to a current target.

rules [
    "bin/helloworld.config" ..> copyFrom "src/App.config"
]

copyFile task

Copies the file contents to a specific file (directory name is not accepted).

do! copyFile "src/App.config" "bin/App.exe.config"

Clone this wiki locally