tasks/ext/SymlinkTask.php
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
- Extends
- Task
- Package
- phing.tasks.ext
- Version
- $ID$
\SymlinkTask
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/
- Parent(s)
- \Task < \ProjectComponent
- Author
- Andrei Serdeliuc
- Extends
- Task
- Version
- $ID$
Properties

array
$_filesets= 'array()'
Collection of filesets Used when linking contents of a directory
(default value: array())
array()Details- Type
- array
- Access
- private

string
$_link= 'null'
Symlink location
(default value: null)
nullDetails- Type
- string
- Access
- private

boolean
$_overwrite= 'false'
Whether to override the symlink if it exists but points to a different location
(default value: false)
falseDetails- Type
- boolean
- Access
- private
Methods

createFileset(
)
:
\FileSetcreator for _filesets
| Type | Description |
|---|---|
| \FileSet |
- Access
- public

getMap(
)
:
array | stringGenerates an array of directories / files to be linked If _filesets is empty, returns getTarget()
| Type | Description |
|---|---|
| array | string |
- Access
- protected

getOverwrite(
)
:
booleangetter for _overwrite
| Type | Description |
|---|---|
| boolean |
- Access
- public

setLink(
string $link
)
:
voidsetter for _link
| Name | Type | Description |
|---|---|---|
| $link | string |
- Access
- public

setOverwrite(
boolean $overwrite
)
:
voidsetter for _overwrite
| Name | Type | Description |
|---|---|---|
| $overwrite | boolean |
- Access
- public

setTarget(
string $target
)
:
voidsetter for _target
| Name | Type | Description |
|---|---|---|
| $target | string |
- Access
- public