|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gradle.api.internal.ConventionTask org.gradle.api.tasks.Delete
public class Delete extends ConventionTask
Deletes files or directories. Example:
task makePretty(type: Delete) { delete 'uglyFolder', 'uglyFile' }
Method Summary | |
---|---|
protected void
|
clean()
|
Delete
|
delete(Object... targets)
Adds some files to be deleted by this task. |
Set
|
getDelete()
Returns the set of files which will be deleted by this task. |
FileCollection
|
getTargetFiles()
Returns the resolved set of files which will be deleted by this task. |
void
|
setDelete(Object target)
Sets the files to be deleted by this task. |
Method Detail |
---|
@TaskAction protected void clean()
public Delete delete(Object... targets)
targets
- Any type of object accepted by Project.files
public Set getDelete()
public FileCollection getTargetFiles()
public void setDelete(Object target)
target
- Any type of object accepted by Project.files
Gradle API 1.12