ManifestTask
Generates a simple Manifest file with optional checksums.
Manifest schema: ... path/to/file CHECKSUM [CHECKSUM2] [CHECKSUM3] path/to/secondfile CHECKSUM [CHECKSUM2] [CHECKSUM3] ...
Example usage:
| author |
David Persson |
|---|---|
| package |
phing.tasks.ext |
| version |
$Id: 7f8f119fe5dd44ca9f374e24d776a1a764260e33 $ |
| since | 2.3.1 |
setFile(\PhingFile $file) : void
setChecksum(mixed $mixed) : void
mixed
setSalt(string $string) : void
string
createFileSet() : object
| access |
public |
|---|
objectThe created fileset object
init()
Should throw a BuildException if something goes wrong with the build
This is abstract here, but may not be overloaded by subclasses.
| throws |
|---|
main()
Should throw a BuildException if someting goes wrong with the build
This is abstract here. Must be overloaded by real tasks.
write()
| throws |
|---|
read()
| todo |
implement |
|---|
hash(string $msg, string $algo) : mixed
| link |
http://www.php.net/mhash http://www.php.net/hash |
|---|
stringThe string that should be hashed
stringAlgorithm
mixedString on success, false if $algo is not available
hashFile(string $file, string $algo) : mixed
string
string
mixedString on success, false if $algo is not available
validateAttributes() : void
| access |
private |
|---|---|
| throws |
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
getLocation() : \Location
setLocation(\Location $location)
getRuntimeConfigurableWrapper() : \RuntimeConfigurable
setRuntimeConfigurableWrapper(\RuntimeConfigurable $wrapper)
maybeConfigure()
perform()
setProject(\Project $project)
getProject() : \Project
taskname :
action : string
"w" for reading in files from fileSet and writing manifest
or
"r" for reading in files from fileSet and checking against manifest
| var |
"r" or "w" |
|---|
string
destFile :
filesets : array
| var |
An Array of objects |
|---|
array
checksum : mixed
.." enables generation of multiple checksums string "sha256" generates sha256 checksum only
| var |
|---|
mixed
salt : string
| var |
|---|
string
description : string
| var |
|---|
string
taskType : string
| var |
|---|
string
taskName : string
| var |
|---|
string
project : \Project