org.apache.tools.ant.taskdefs
Class Delete

java.lang.Object
  |
  +--org.apache.tools.ant.Task
        |
        +--org.apache.tools.ant.taskdefs.MatchingTask
              |
              +--org.apache.tools.ant.taskdefs.Delete

public class Delete
extends MatchingTask

Deletes a single file or a set of files defined by a pattern.

Author:
stefano@apache.org, Tom Dimock tad1@cornell.edu

Inner classes inherited from class org.apache.tools.ant.taskdefs.MatchingTask
MatchingTask.NameEntry
 
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask
excludeList, includeList, useDefaultExcludes
 
Fields inherited from class org.apache.tools.ant.Task
description, location, project, target
 
Constructor Summary
Delete()
           
 
Method Summary
 void execute()
          Make it so.
 void setDir(java.lang.String dir)
          Set the directory from which files are to be deleted
 void setFile(java.lang.String file)
          Set the name of a single file to be removed.
 void setVerbose(java.lang.String verbose)
          Used to force listing of all names of deleted files.
 
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask
createExclude, createInclude, getDirectoryScanner, getProperty, setDefaultexcludes, setExcludes, setIgnore, setIncludes, setItems
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, init, setDescription, setLocation, setTarget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Delete

public Delete()
Method Detail

setFile

public void setFile(java.lang.String file)
Set the name of a single file to be removed.
Parameters:
file - the file to be deleted

setDir

public void setDir(java.lang.String dir)
Set the directory from which files are to be deleted
Parameters:
dir - the directory path.

setVerbose

public void setVerbose(java.lang.String verbose)
Used to force listing of all names of deleted files.
Parameters:
verbose - "true" or "on"

execute

public void execute()
             throws BuildException
Make it so. Delete the file(s).
Throws:
BuildException -  
Overrides:
execute in class Task


Copyright © 2000 Apache Software Foundation. All Rights Reserved.