Top Fields Constructors Methods
org.apache.tools.ant.taskdefs

public Class Deltree

extends Task
Class Inheritance
Annotations
@Deprecated
Imports
java.io.File, org.apache.tools.ant.BuildException, .Task

Deprecated

The deltree task is deprecated since Ant 1.2. Use delete instead.

Since
Ant 1.1

Field Summary

Modifier and TypeField and Description
private File
Inherited from org.apache.tools.ant.Task:
targettaskNametaskTypewrapper

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
execute()

Overrides org.apache.tools.ant.Task.execute.

Do the work.
private void
public void
setDir(File
the root of the tree to be removed.
dir
)

Set the directory to be deleted

Inherited from org.apache.tools.ant.Task:
bindToOwnergetOwningTargetgetRuntimeConfigurableWrappergetTaskNamegetTaskTypegetWrapperhandleErrorFlushhandleErrorOutputhandleFlushhandleInputhandleOutputinitisInvalidloglogloglogmaybeConfigureperformreconfiguresetOwningTargetsetRuntimeConfigurableWrappersetTaskNamesetTaskType

Field Detail

dirback to summary
private File dir

Constructor Detail

Deltreeback to summary
public Deltree()

Method Detail

executeback to summary
public void execute() throws BuildException

Overrides org.apache.tools.ant.Task.execute.

Do the work.

Exceptions
BuildException:
if the task is not configured correctly or the tree cannot be removed.
removeDirback to summary
private void removeDir(File dir)
setDirback to summary
public void setDir(File dir)

Set the directory to be deleted

Parameters
dir:File

the root of the tree to be removed.