classes/phing/tasks/system/ResolvePathTask.php
Task for resolving relative paths and setting absolute path in property value.
This task was created to address a need for resolving absolute paths of files / directories. In many cases a relative directory (e.g. "./build") is specified, but it needs to be treated as an absolute path since other build files (e.g. in subdirs) should all be using the same path -- and not treating it as a relative path to their own directory.
TODO: - Possibly integrate this with PackageAsPath, for handling/resolving dot-path paths.
- author
- Hans Lellelid
- package
- phing.tasks.system
- version
- $Revision: 552 $
\ResolvePathTask
Task for resolving relative paths and setting absolute path in property value.
This task was created to address a need for resolving absolute paths of files / directories. In many cases a relative directory (e.g. "./build") is specified, but it needs to be treated as an absolute path since other build files (e.g. in subdirs) should all be using the same path -- and not treating it as a relative path to their own directory.
TODO: - Possibly integrate this with PackageAsPath, for handling/resolving dot-path paths.
- Extends from
- \Task
- author
- Hans Lellelid
- copyright
- 2001,2002 THYRELL. All rights reserved
- package
- phing.tasks.system
- version
- $Revision: 552 $
Properties
Methods

setDir(
\PhingFile $d
)
:
| Name | Type | Description |
|---|---|---|
| $d | \PhingFile |

setFile(
string $f
)
:
| Name | Type | Description |
|---|---|---|
| $f | string |

setPath(
string $f
)
:
This is the same as setFile() -- just more generic name so that it's clear that you can also use it to set directory.
| Name | Type | Description |
|---|---|---|
| $f | string |
- see
- \setFile()