Moves a file or directory to a new file or directory.
By default, the destination file is overwritten if it already exists. When overwrite is turned off, then files are only moved if the source file is newer than the destination file, or when the destination file does not exist.
Source files and directories are only deleted when the file or directory has been copied to the destination successfully.
version |
$Id: 940741d8377306f23bb29048dd874e99298ffbd2 $ |
---|---|
package |
phing.tasks.system |
__construct() : object
access |
public |
---|---|
object
The CopyTask instance
_scan( &$fromDir, &$toDir, &$files, &$dirs) : void
access |
private |
---|---|
addFileSet(\FileSet $fs) : void
buildMap( &$fromDir, &$toDir, &$names, &$mapper, &$map) : void
access |
private |
---|---|
createFileList() : object
access |
public |
---|---|
object
The created filelist object
createFilterChain() : object
access |
public |
---|---|
object
The created filterchain object
createMapper() : object
access |
public |
---|---|
throws | |
object
The created Mapper type object
deleteDir( $d)
doWork() : void
access |
private |
---|---|
throws | |
getDescription() : string
string
The text description of the task
getLocation() : \Location
getOwningTarget() : \Target
getProject() : \Project
getRegisterSlot(string $slotName)
string
getRuntimeConfigurableWrapper() : \RuntimeConfigurable
getTaskName() : string
string
Name of this task
getTaskType() : string
string
The type of this task (XML Tag)
init()
Should throw a BuildException if something goes wrong with the build
This is abstract here, but may not be overloaded by subclasses.
throws | |
---|---|
log(string $msg, integer $level = \Project::MSG_INFO)
string
The message to be logged.
integer
The message's priority at this message should have
logError( $message, $location = NULL)
main()
Should throw a BuildException if someting goes wrong with the build
This is abstract here. Must be overloaded by real tasks.
maybeConfigure()
okToDelete( $d)
perform()
setDescription(string $desc)
string
The text describing the task
setFile(\PhingFile $file) : void
setHaltonerror( $haltonerror) : void
access |
public |
---|
setIncludeEmptyDirs( $bool) : void
access |
public |
---|
setLocation(\Location $location)
setMode( $mode) : void
Default mode is taken from umask()
access |
public |
---|
setOverwrite( $bool) : void
access |
public |
---|
setOwningTarget(\Target $target)
setPreserveLastModified( $bool) : void
access |
public |
---|
setPreservemode( $bool)
setProject(\Project $project)
setRuntimeConfigurableWrapper(\RuntimeConfigurable $wrapper)
setTaskName(string $name) : string
string
string
A string representing the name of this task for log
setTaskType( $name)
setTodir(\PhingFile $dir) : void
setTofile(\PhingFile $file) : void
setTstamp( $bool)
see | \CopyTask::setPreserveLastModified |
---|---|
setVerbose(boolean $verbosity)
boolean
validateAttributes() : void
access |
private |
---|---|
throws | |
file :
destFile :
destDir :
overwrite :
preserveLMT :
preservePermissions :
includeEmpty :
flatten :
mapperElement :
fileCopyMap :
dirCopyMap :
completeDirMap :
fileUtils :
filesets :
filelists :
filterChains :
verbosity :
mode :
haltonerror :
description : string
var |
---|
string
taskType : string
var |
---|
string
taskName : string
var |
---|
string
project : \Project