Package org.apache.tools.ant.taskdefs
Class Copyfile
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.Copyfile
- All Implemented Interfaces:
Cloneable
Deprecated.
The copyfile task is deprecated since Ant 1.2. Use
copy instead.
Copies a file.
- Since:
- Ant 1.1
-
Field Summary
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Deprecated.Execute the task.voidDeprecated.Set the destination file.voidsetFiltering(String filter) Deprecated.The filtering attribute.voidsetForceoverwrite(boolean force) Deprecated.The forceoverwrite attribute.voidDeprecated.Set the source file.Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
Constructor Details
-
Copyfile
public Copyfile()Deprecated.
-
-
Method Details
-
setSrc
Deprecated.Set the source file.- Parameters:
src- the source file.
-
setForceoverwrite
public void setForceoverwrite(boolean force) Deprecated.The forceoverwrite attribute. Default is false.- Parameters:
force- if true overwrite even if the destination file is newer that the source file
-
setDest
Deprecated.Set the destination file.- Parameters:
dest- the destination file.
-
setFiltering
Deprecated.The filtering attribute. Default is false.- Parameters:
filter- if true use filtering
-
execute
Deprecated.Execute the task.- Overrides:
executein classTask- Throws:
BuildException- on error
-