-
Notifications
You must be signed in to change notification settings - Fork 4
Tasks | Rm
Oleg edited this page May 14, 2017
·
3 revisions
Requires version 0.10.x
Deletes individual files, folders and filesets.
Also available as
del
task.
Del
task accepts settings of the RmArgs type:
type RmArgs = {
dir: string
file: string
files: Fileset
verbose: bool
}
Command is available via both common and simplified syntax:
open Xake.Tasks
...
do! Rm {RmArgs.Default with file = "samplefile"}
/// or simplified syntax:
do! rm {file "samplefile"}
do! rm {file "samplefile"}
The following code deletes file by mask:
do! rm {file "temp*.txt"}
The following code will delete folder with all its contents and subfolders:
do! rm {dir "a"}
do! rm {
files (fileset {
includes "samplefile*"
})
}
verbose
settings instructs command to output each file name while removing file of directory
do! rm {dir "a"; verbose}
- Creating simple script
- Running the first build
- What the rule and recipe is?
- Filesets defined
- Editing the script
- Configure your project and CI
- Defining filesets
- Recipe computation
- Declaring the rules
- Error handling and exceptions
- Script and environment settings
- Command line interface (CLI)
- Writing cross-platform scripts
- Build-in functions
- .NET tasks
- System tasks
- Other
- ...