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

public Class Copyfile

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

Deprecated

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

Copies a file.
Since
Ant 1.1

Field Summary

Modifier and TypeField and Description
private File
private boolean
private boolean
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.

Execute the task.
public void
setDest(File
the destination file.
dest
)

Set the destination file.

public void
setFiltering(String
if true use filtering
filter
)

The filtering 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
)

Set the source file.

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

Field Detail

destFileback to summary
private File destFile
filteringback to summary
private boolean filtering
forceOverwriteback to summary
private boolean forceOverwrite
srcFileback to summary
private File srcFile

Constructor Detail

Copyfileback to summary
public Copyfile()

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
setDestback to summary
public void setDest(File dest)

Set the destination file.

Parameters
dest:File

the destination file.

setFilteringback to summary
public void setFiltering(String filter)

The filtering attribute. Default is false.

Parameters
filter:String

if true use filtering

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)

Set the source file.

Parameters
src:File

the source file.