org.oddjob.io
Class DeleteJob

java.lang.Object
  extended byorg.oddjob.io.DeleteJob
All Implemented Interfaces:
java.lang.Runnable, java.io.Serializable

public class DeleteJob
extends java.lang.Object
implements java.lang.Runnable, java.io.Serializable

Description:
Delete a file or directory, or files and directories.

Unless the force property is set, this job will cause an exception if an attempt is made to delete a non empty directory.

Example:
<delete files="work/*" force="true"/>
See Also:
Serialized Form
Author:
Rob Gordon

Constructor Summary
DeleteJob()
           
 
Method Summary
 java.io.File[] getFiles()
          Get the files.
 boolean getForce()
          Geter for force property.
 java.lang.String getName()
          Get the name.
 void run()
           
 void setFiles(java.io.File[] files)
          Set the files.
 void setForce(boolean force)
          Setter for force property.
 void setName(java.lang.String name)
          Set the name
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeleteJob

public DeleteJob()
Method Detail

getName

public java.lang.String getName()
Get the name.

Returns:
The name.

setName

public void setName(java.lang.String name)
Set the name

Parameters:
name - The name.

getFiles

public java.io.File[] getFiles()
Get the files.

Returns:
The files.

setFiles

public void setFiles(java.io.File[] files)
Set the files.


getForce

public boolean getForce()
Geter for force property.

Returns:
The force property.

setForce

public void setForce(boolean force)
Setter for force property.

Parameters:
force - The force property.

run

public void run()
Specified by:
run in interface java.lang.Runnable

toString

public java.lang.String toString()