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:
<fileset refid="files_build" />
<fileset refid="files_build" />
author |
David Persson |
---|---|
package |
phing.tasks.ext |
version |
$Id: 7e42ce5973d6672b4caea89c4bda81fe01556e00 $ |
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)
string
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)
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()
read()
todo |
implement |
---|---|
setChecksum(mixed $mixed) : void
mixed
setDescription(string $desc)
string
The text describing the task
setFile(\PhingFile $file) : void
setLocation(\Location $location)
setOwningTarget(\Target $target)
setProject(\Project $project)
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
access |
private |
---|---|
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 : 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