Executes a command on the (filtered) file list/set.
(Loosely based on the "Ant Apply" task - http://ant.apache.org/manual/Tasks/apply.html)
author |
Utsav Handa |
---|---|
package |
phing.tasks.system |
todo |
Add support for mapper, targetfile expressions |
createFileSet() : \FileSet
setExecutable(string $executable) : void
string
Executable path
setDir(\PhingFile $dir) : void
setEscape(boolean $escape) : void
boolean
Escape command before execution
setOutput(\PhingFile $outputfile) : void
setAppend($append) : void
setParallel(Boolean $parallel) : void
Boolean
Identifier for files as arguments appending
setAddsourcefile(Boolean $addsourcefile) : void
Boolean
Identifier for adding source file at the end of command
setError(\PhingFile $errorfile) : void
setSpawn(boolean $spawn) : void
boolean
If the command is to be run as a background process
setReturnProperty(string $propertyname) : void
string
Property name
setOutputProperty(string $propertyname) : void
string
Property name
setRelative($relative) : void
setOs(string $os) : void
string
Operating system string (e.g. "Linux")
setPassthru(boolean $passthru) : void
boolean
If passthru shall be used
setFailonerror(boolean $failonerror) : void
boolean
Indicator to fail on error
setCheckreturn($failonerror)
setForwardslash(boolean $forwardslash) : void
boolean
Indicator to use forward-slash
setMaxparallel($max) : void
createSrcfile() : void
createArg() : void
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.
validateOS() : boolean
boolean
False if the exec command shall not be run
initialize() : void
buildCommand() : void
process(mixed $files, $basedir) : void
mixed
File list for processing
executeCommand($command) : array
array
array(return code, array with output)
cleanup() : void
getFilePath($filename, $basedir, $relative) : mixed
mixed
processed filenames
throwBuildException(mixed $information) : void
mixed
Exception information
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
SOURCEFILE_ID
filesets : array
var |
---|
array
filelists :
commandline : \commandline
var |
---|
\commandline
dir : \phingfile
var |
---|
\phingfile
currentdirectory :
realCommand : string
var |
---|
string
escape : boolean
var |
---|
boolean
output : \phingfile
var |
---|
\phingfile
error : \phingfile
var |
---|
\phingfile
appendoutput : boolean
var |
---|
boolean
parallel : boolean
var |
---|
boolean
addsourcefile : boolean
var |
---|
boolean
spawn : boolean
var |
---|
boolean
returnProperty : string
var |
---|
string
outputProperty : string
var |
---|
string
relative : boolean
var |
---|
boolean
os : string
var |
---|
string
currentos :
osvariant :
loglevel : integer
var |
---|
integer
failonerror : boolean
var |
---|
boolean
passthru : boolean
var |
---|
boolean
forwardslash : boolean
var |
---|
boolean
maxparallel : integer
var |
---|
integer
description : string
var |
---|
string
taskType : string
var |
---|
string
taskName : string
var |
---|
string
project : \Project