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$ |
|---|---|
| package |
phing.tasks.system |
__construct() : object
| access |
public |
|---|
objectThe CopyTask instance
validateAttributes() : void
| access |
private |
|---|---|
| throws |
doWork() : void
| access |
private |
|---|---|
| throws |
okToDelete($d)
deleteDir($d)
setOverwrite($bool) : void
| access |
public |
|---|
setVerbose(boolean $verbosity)
boolean
setTstamp($bool)
| see | \CopyTask::setPreserveLastModified |
|---|---|
setPreserveLastModified($bool) : void
| access |
public |
|---|
setPreservemode($bool)
setIncludeEmptyDirs($bool) : void
| access |
public |
|---|
setFile(\PhingFile $file) : void
setTofile(\PhingFile $file) : void
setMode($mode) : void
Default mode is taken from umask()
| access |
public |
|---|
setTodir(\PhingFile $dir) : void
setHaltonerror($haltonerror) : void
| access |
public |
|---|
addFileSet(\FileSet $fs) : void
createFileList() : object
| access |
public |
|---|
objectThe created filelist object
createFilterChain() : object
| access |
public |
|---|
objectThe created filterchain object
createMapper() : object
| access |
public |
|---|---|
| throws |
objectThe created Mapper type object
main()
Should throw a BuildException if someting goes wrong with the build
This is abstract here. Must be overloaded by real tasks.
_scan($fromDir, $toDir, $files, $dirs) : void
| access |
private |
|---|---|
buildMap($fromDir, $toDir, $names, $mapper, $map) : void
| access |
private |
|---|---|
logError($message, $location = NULL)
setOwningTarget(\Target $target)
getOwningTarget() : \Target
getTaskName() : string
stringName of this task
setTaskName(string $name) : string
string
stringA string representing the name of this task for log
getTaskType() : string
stringThe type of this task (XML Tag)
setTaskType($name)
getRegisterSlot(string $slotName)
string
log(string $msg, integer $level = \Project::MSG_INFO)
stringThe message to be logged.
integerThe message's priority at this message should have
setDescription(string $desc)
stringThe text describing the task
getDescription() : string
stringThe text description of the task
init()
Should throw a BuildException if something goes wrong with the build
This is abstract here, but may not be overloaded by subclasses.
| throws |
|---|
getLocation() : \Location
setLocation(\Location $location)
getRuntimeConfigurableWrapper() : \RuntimeConfigurable
setRuntimeConfigurableWrapper(\RuntimeConfigurable $wrapper)
maybeConfigure()
perform()
setProject(\Project $project)
getProject() : \Project
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