Generates symlinks based on a target / link combination.
Can also symlink contents of a directory, individually
Single target symlink example:
Symlink entire contents of directory
This will go through the contents of "/my/shared/library/*"
and create a symlink for each entry into ${project.basedir}/library/
author |
Andrei Serdeliuc andrei@serdeliuc.ro |
---|---|
extends |
Task |
version |
$ID$ |
package |
phing.tasks.ext |
getDescription() : string
string
The text description of the task
getFilesets() : array
array
getLink() : string
throws | |
---|---|
string
getLocation() : \Location
getMap() : array|string
throws | |
---|---|
array|string
getOverwrite() : boolean
boolean
getOwningTarget() : \Target
getProject() : \Project
getRegisterSlot(string $slotName) : \RegisterSlot
getRuntimeConfigurableWrapper() : \RuntimeConfigurable
getTarget() : string
throws | |
---|---|
string
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 | |
---|---|
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 | |
---|---|
setDescription(string $desc)
string
The text describing the task
setLink(string $link) : void
string
setLocation(\Location $location)
setOverwrite(boolean $overwrite) : void
boolean
setOwningTarget(\Target $target)
setProject(\Project $project) : void
setRuntimeConfigurableWrapper(\RuntimeConfigurable $wrapper)
setTarget(string $target) : void
string
setTaskName(string $name) : string
string
string
A string representing the name of this task for log
setTaskType( $name)
symlink(string $target, string $link) : boolean
string
string
boolean
_target : string
(default value: null)
var |
---|
string
_link : string
(default value: null)
var |
---|
string
_filesets : array
(default value: array())
var |
---|
array
_overwrite : boolean
(default value: false)
var |
---|
boolean
description : string
var |
---|
string
taskType : string
var |
---|
string
taskName : string
var |
---|
string
project : \Project