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
stringExecutable path
setDir(\PhingFile $dir) : void
setEscape(boolean $escape) : void
booleanEscape command before execution
setOutput(\PhingFile $outputfile) : void
setAppend($append) : void
setParallel(Boolean $parallel) : void
BooleanIdentifier for files as arguments appending
setAddsourcefile(Boolean $addsourcefile) : void
BooleanIdentifier for adding source file at the end of command
setError(\PhingFile $errorfile) : void
setSpawn(boolean $spawn) : void
booleanIf the command is to be run as a background process
setReturnProperty(string $propertyname) : void
stringProperty name
setOutputProperty(string $propertyname) : void
stringProperty name
setRelative($relative) : void
setOs(string $os) : void
stringOperating system string (e.g. "Linux")
setPassthru(boolean $passthru) : void
booleanIf passthru shall be used
setFailonerror(boolean $failonerror) : void
booleanIndicator to fail on error
setCheckreturn($failonerror)
setForwardslash(boolean $forwardslash) : void
booleanIndicator 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
booleanFalse if the exec command shall not be run
initialize() : void
buildCommand() : void
process(mixed $files, $basedir) : void
mixedFile list for processing
executeCommand($command) : array
arrayarray(return code, array with output)
cleanup() : void
getFilePath($filename, $basedir, $relative) : mixed
mixedprocessed filenames
throwBuildException(mixed $information) : void
mixedException information
setOwningTarget(\Target $target)
getOwningTarget() : \Target
getTaskName() : string
stringName of this task
setTaskName(string $name) : string
string
stringA string representing the name of this task for log
getTaskType() : string
stringThe type of this task (XML Tag)
setTaskType($name)
getRegisterSlot(string $slotName)
string
log(string $msg, integer $level = \Project::MSG_INFO)
stringThe message to be logged.
integerThe message's priority at this message should have
setDescription(string $desc)
stringThe text describing the task
getDescription() : string
stringThe 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