Gradle Delete Task

From NovaOrdis Knowledge Base
Revision as of 00:05, 22 May 2018 by Ovidiu (talk | contribs) (→‎Overview)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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
}