Gradle Delete Task: Difference between revisions
Jump to navigation
Jump to search
Line 15: | Line 15: | ||
delete 'some-folder', 'some-file' | delete 'some-folder', 'some-file' | ||
followSymlinks = true | followSymlinks = true | ||
} | |||
</syntaxhighlight> | |||
Example of a "clean" task implementation: | |||
<syntaxhighlight lang='groovy'> | |||
task clean(type: Delete) { | |||
delete buildDir | |||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> |
Latest revision as of 00:05, 22 May 2018
External
Internal
Overview
Deletes files or directories.
task delete(type: Delete) {
delete 'some-folder', 'some-file'
followSymlinks = true
}
Example of a "clean" task implementation:
task clean(type: Delete) {
delete buildDir
}