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 |
setTarget(string $target) : void
| access |
public |
|---|
string
setLink(string $link) : void
| access |
public |
|---|
string
setOverwrite(boolean $overwrite) : void
| access |
public |
|---|
boolean
getTarget() : string
| access |
public |
|---|
string
getLink() : string
| access |
public |
|---|
string
getFilesets() : array
| access |
public |
|---|
array
getOverwrite() : boolean
| access |
public |
|---|
boolean
getMap() : array|string
| access |
protected |
|---|
array|string
main()
Should throw a BuildException if someting goes wrong with the build
This is abstract here. Must be overloaded by real tasks.
symlink(string $target, string $link) : bool
| access |
protected |
|---|
string
string
bool
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
init()
Should throw a BuildException if something goes wrong with the build
This is abstract here, but may not be overloaded by subclasses.
| throws |
|---|
getLocation() : \Location
setLocation(\Location $location)
getRuntimeConfigurableWrapper() : \RuntimeConfigurable
setRuntimeConfigurableWrapper(\RuntimeConfigurable $wrapper)
maybeConfigure()
perform()
setProject(\Project $project)
getProject() : \Project
_target : string
(default value: null)
| var | |
|---|---|
| access |
private |
string
_link : string
(default value: null)
| var | |
|---|---|
| access |
private |
string
_filesets : array
(default value: array())
| var | |
|---|---|
| access |
private |
array
_overwrite : boolean
(default value: false)
| var | |
|---|---|
| access |
private |
boolean
description : string
| var |
|---|
string
taskType : string
| var |
|---|
string
taskName : string
| var |
|---|
string
project : \Project