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 |
since | 2.3.1 |
addFileSet(\FileSet $fs) : void
getDescription() : string
string
The text description of the task
getLocation() : \Location
getOwningTarget() : \Target
getProject() : \Project
getRegisterSlot(string $slotName) : \RegisterSlot
getRuntimeConfigurableWrapper() : \RuntimeConfigurable
getTaskName() : string
string
Name of this task
getTaskType() : string
string
The type of this task (XML Tag)
hash(string $msg, string $algo) : mixed
link |
---|
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
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) : void
string
The message to be logged.
integer
The message's priority at this message should have
main()
Should throw a BuildException if someting goes wrong with the build
This is abstract here. Must be overloaded by real tasks.
maybeConfigure()
perform()
throws | |
---|---|
read()
todo |
implement |
---|---|
setChecksum(mixed $mixed) : void
mixed
setDescription(string $desc)
string
The text describing the task
setFile(\PhingFile $file) : void
This is where the manifest will be written to/read from
setLocation(\Location $location)
setOwningTarget(\Target $target)
setProject(\Project $project) : void
setRuntimeConfigurableWrapper(\RuntimeConfigurable $wrapper)
setSalt(string $string) : void
string
setTaskName(string $name) : string
string
string
A string representing the name of this task for log
setTaskType( $name)
validateAttributes() : void
throws | |
---|---|
write()
throws | |
---|---|
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 : boolean|string
.." enables generation of multiple checksums string "sha256" generates sha256 checksum only
var |
---|
boolean|string
salt : string
var |
---|
string
description : string
var |
---|
string
taskType : string
var |
---|
string
taskName : string
var |
---|
string
project : \Project