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

public Class Copydir

extends MatchingTask
Class Inheritance
Annotations
@Deprecated
Imports
java.io.File, .IOException, java.util.Hashtable, .Map, org.apache.tools.ant.BuildException, .DirectoryScanner, .Project

Deprecated

The copydir task is deprecated since Ant 1.2. Use copy instead.

Copies a directory.
Since
Ant 1.1

Field Summary

Modifier and TypeField and Description
private File
private Map<String, String>
private boolean
private boolean
private boolean
private File
Inherited from org.apache.tools.ant.taskdefs.MatchingTask:
fileset

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
execute()

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

Execute the task.
private void
scanDir(File from, File to, String[] files)

public void
setDest(File
the destination file
dest
)

The dest attribute

public void
setFiltering(boolean
if true use filtering
filter
)

The filtering attribute.

public void
setFlatten(boolean
if true use flattening
flatten
)

The flattening attribute.

public void
setForceoverwrite(boolean
if true overwrite even if the destination file is newer that the source file
force
)

The forceoverwrite attribute.

public void
setSrc(File
the source file
src
)

The src attribute

Inherited from org.apache.tools.ant.taskdefs.MatchingTask:
addaddAndaddContainsaddContainsRegexpaddCustomaddDateaddDependaddDepthaddDifferentaddFilenameaddMajorityaddModifiedaddNoneaddNotaddOraddPresentaddSelectoraddSizeaddTypeappendSelectorcreateExcludecreateExcludesFilecreateIncludecreateIncludesFilecreatePatternSetgetDirectoryScannergetImplicitFileSetgetSelectorshasSelectorsselectorCountselectorElementssetCaseSensitivesetDefaultexcludessetExcludessetExcludesfilesetFollowSymlinkssetIncludessetIncludesfilesetProjectXsetIgnoreXsetItems

Field Detail

destDirback to summary
private File destDir
filecopyListback to summary
private Map<String, String> filecopyList
filteringback to summary
private boolean filtering
flattenback to summary
private boolean flatten
forceOverwriteback to summary
private boolean forceOverwrite
srcDirback to summary
private File srcDir

Constructor Detail

Copydirback to summary
public Copydir()

Method Detail

executeback to summary
public void execute() throws BuildException

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

Execute the task.

Annotations
@Override
Exceptions
BuildException:
on error
scanDirback to summary
private void scanDir(File from, File to, String[] files)
setDestback to summary
public void setDest(File dest)

The dest attribute

Parameters
dest:File

the destination file

setFilteringback to summary
public void setFiltering(boolean filter)

The filtering attribute. Default is false.

Parameters
filter:boolean

if true use filtering

setFlattenback to summary
public void setFlatten(boolean flatten)

The flattening attribute. Default is false.

Parameters
flatten:boolean

if true use flattening

setForceoverwriteback to summary
public void setForceoverwrite(boolean force)

The forceoverwrite attribute. Default is false.

Parameters
force:boolean

if true overwrite even if the destination file is newer that the source file

setSrcback to summary
public void setSrc(File src)

The src attribute

Parameters
src:File

the source file