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:
- java.lang.Cloneable
 
 @Deprecated public class Copyfile extends Task 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.ProjectComponentdescription, location, project
 
- 
 - 
Constructor SummaryConstructors Constructor Description Copyfile()Deprecated.
 - 
Method SummaryModifier and Type Method Description voidexecute()Deprecated.Execute the task.voidsetDest(java.io.File dest)Deprecated.Set the destination file.voidsetFiltering(java.lang.String filter)Deprecated.The filtering attribute.voidsetForceoverwrite(boolean force)Deprecated.The forceoverwrite attribute.voidsetSrc(java.io.File src)Deprecated.Set the source file.- 
Methods inherited from class org.apache.tools.ant.TaskbindToOwner, 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.ProjectComponentclone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
- 
 
- 
- 
- 
Method Detail- 
setSrcpublic void setSrc(java.io.File src) Deprecated.Set the source file.- Parameters:
- src- the source file.
 
 - 
setForceoverwritepublic 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
 
 - 
setDestpublic void setDest(java.io.File dest) Deprecated.Set the destination file.- Parameters:
- dest- the destination file.
 
 - 
setFilteringpublic void setFiltering(java.lang.String filter) Deprecated.The filtering attribute. Default is false.- Parameters:
- filter- if true use filtering
 
 - 
executepublic void execute() throws BuildExceptionDeprecated.Execute the task.- Overrides:
- executein class- Task
- Throws:
- BuildException- on error
 
 
- 
 
-