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 |
addFileSet(\FileSet $fs) : void
buildCommand() : void
cleanup() : void
createSrcfile() : void
executeCommand(string $command) : array
string
array
array(return code, array with output)
getDescription() : string
string
The text description of the task
getFilePath( $filename, $basedir, $relative) : mixed
mixed
processed filenames
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)
init()
Should throw a BuildException if something goes wrong with the build
This is abstract here, but may not be overloaded by subclasses.
throws | |
---|---|
initialize() : void
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 | |
---|---|
process(array $files, string $basedir) : void
array
File list for processing
string
Base directory of the file list
setAddsourcefile(Boolean $addsourcefile) : void
Boolean
Identifier for adding source file at the end of command
setCheckreturn( $failonerror)
setDescription(string $desc)
string
The text describing the task
setDir(\PhingFile $dir) : void
setError(\PhingFile $errorfile) : void
setEscape(boolean $escape) : void
boolean
Escape command before execution
setExecutable(string $executable) : void
string
Executable path
setFailonerror(boolean $failonerror) : void
boolean
Indicator to fail on error
setForwardslash(boolean $forwardslash) : void
boolean
Indicator to use forward-slash
setLocation(\Location $location)
setOs(string $os) : void
string
Operating system string (e.g. "Linux")
setOutput(\PhingFile $outputfile) : void
setOutputProperty(string $propertyname) : void
string
Property name
setOwningTarget(\Target $target)
setParallel(Boolean $parallel) : void
Boolean
Identifier for files as arguments appending
setPassthru(boolean $passthru) : void
boolean
If passthru shall be used
setProject(\Project $project) : void
setReturnProperty(string $propertyname) : void
string
Property name
setRuntimeConfigurableWrapper(\RuntimeConfigurable $wrapper)
setSpawn(boolean $spawn) : void
boolean
If the command is to be run as a background process
setTaskName(string $name) : string
string
string
A string representing the name of this task for log
setTaskType( $name)
throwBuildException( $information) : void
throws |
---|
Exception information
validateOS() : boolean
boolean
False if the exec command shall not be run
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