Changes the attributes of a file or all files inside specified directories.
Right now it has effect only under Windows. Each of the 4 possible
permissions has its own attribute, matching the arguments for the attrib
command.
Example:
<attrib file="${input}" readonly="true" hidden="true" verbose="true"/>
author |
Siad Ardroumli siad.ardroumli@gmail.com |
---|---|
package |
phing.tasks.system |
addArg( $sign, $attribute)
addDirSet(\DirSet $dirSet) : void
addFileSet(\FileSet $fs) : void
buildCommand() : void
checkConfiguration()
throws | |
---|---|
cleanup() : void
createArg() : \CommandlineArgument
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
getSignString( $attr)
getTaskName() : string
string
Name of this task
getTaskType() : string
string
The type of this task (XML Tag)
hasAttr() : boolean
boolean
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
setArchive(boolean $value)
boolean
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
setHidden(boolean $value)
boolean
setLocation(\Location $location)
setMaxParallel(integer $max)
This is not allowed, and it always throws a BuildException.
throws | |
---|---|
integer
ignored
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
setReadonly(boolean $value)
boolean
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
setSystem(boolean $value)
boolean
setTaskName(string $name) : string
string
string
A string representing the name of this task for log
setTaskType( $name)
setVerbose(boolean $b)
boolean
throwBuildException( $information) : void
throws |
---|
Exception information
validateOS() : boolean
boolean
False if the exec command shall not be run
SOURCEFILE_ID
ATTR_READONLY :
ATTR_ARCHIVE :
ATTR_SYSTEM :
ATTR_HIDDEN :
SET :
UNSET :
attr :
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