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
string
Name of this task
setTaskName(string $name) : string
string
string
A string representing the name of this task for log
getTaskType() : string
string
The type of this task (XML Tag)
setTaskType($name)
getRegisterSlot(string $slotName)
string
log(string $msg, integer $level = \Project::MSG_INFO)
string
The message to be logged.
integer
The message's priority at this message should have
setDescription(string $desc)
string
The text describing the task
getDescription() : string
string
The 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