[ Index ]
 

Code source de Symfony 1.0.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/vendor/phing/tasks/system/ -> ResolvePathTask.php (sommaire)

(pas de description)

Poids: 122 lignes (4 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

ResolvePathTask:: (5 méthodes):
  setPropertyName()
  setDir()
  setPath()
  setFile()
  main()


Classe: ResolvePathTask  - X-Ref

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.

<code>
<property name="relative_path" value="./dirname"/>
<resolvepath propertyName="absolute_path" file="${relative_path}"/>
<echo>Resolved [absolute] path: ${absolute_path}</echo>
</code>

TODO:
- Possibly integrate this with PackageAsPath, for handling/resolving dot-path paths.

setPropertyName($v)   X-Ref
Set the name of the property to set.

param: string $v Property name
return: void

setDir(PhingFile $d)   X-Ref
Sets a base dir to use for resolution.

param: PhingFile $d

setPath($f)   X-Ref
Sets a path (file or directory) that we want to resolve.
This is the same as setFile() -- just more generic name so that it's
clear that you can also use it to set directory.

param: string $f

setFile($f)   X-Ref
Sets a file that we want to resolve.

param: string $f

main()   X-Ref
Perform the resolution & set property.




Généré le : Fri Mar 16 22:42:14 2007 par Balluche grâce à PHPXref 0.7