org.apache.tools.ant.taskdefs

Class Copydir

Implemented Interfaces:
Cloneable, SelectorContainer

public class Copydir
extends MatchingTask

Copies a directory.
Since:
Ant 1.1

Field Summary

Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask

fileset

Fields inherited from class org.apache.tools.ant.Task

target, taskName, taskType, wrapper

Fields inherited from class org.apache.tools.ant.ProjectComponent

description, location, project

Method Summary

void
execute()
Execute the task.
void
setDest(File dest)
The dest attribute
void
setFiltering(boolean filter)
The filtering attribute.
void
setFlatten(boolean flatten)
The flattening attribute.
void
setForceoverwrite(boolean force)
The forceoverwrite attribute.
void
setSrc(File src)
The src attribute

Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask

XsetIgnore, XsetItems, add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject

Methods inherited from class org.apache.tools.ant.Task

bindToOwner, execute, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType

Methods inherited from class org.apache.tools.ant.ProjectComponent

clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject

Method Details

execute

public void execute()
            throws BuildException
Execute the task.
Overrides:
execute in interface Task
Throws:
BuildException - on error

setDest

public void setDest(File dest)
The dest attribute
Parameters:
dest - the destination file

setFiltering

public void setFiltering(boolean filter)
The filtering attribute. Default is false.
Parameters:
filter - if true use filtering

setFlatten

public void setFlatten(boolean flatten)
The flattening attribute. Default is false.
Parameters:
flatten - if true use flattening

setForceoverwrite

public void setForceoverwrite(boolean force)
The forceoverwrite attribute. Default is false.
Parameters:
force - if true overwrite even if the destination file is newer that the source file

setSrc

public void setSrc(File src)
The src attribute
Parameters:
src - the source file