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 |
---|
object
The 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 |
---|
string
The string that should be hashed
string
Algorithm
mixed
String on success, false if $algo is not available
hashFile(string $file, string $algo) : mixed
string
string
mixed
String on success, false if $algo is not available
validateAttributes() : void
access |
private |
---|---|
throws |
setOwningTarget(\Target $target)
getOwningTarget() : \Target
getTaskName() : string
string
Name of this task
setTaskName(string $name) : string
string
string
A string representing the name of this task for log
getTaskType() : string
string
The type of this task (XML Tag)
setTaskType($name)
getRegisterSlot(string $slotName)
string
log(string $msg, integer $level = \Project::MSG_INFO)
string
The message to be logged.
integer
The message's priority at this message should have
setDescription(string $desc)
string
The text describing the task
getDescription() : string
string
The 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