. */ require_once 'phing/Task.php'; /** * Convert dot-notation packages to relative paths. * * @author Hans Lellelid * @version $Id: PackageAsPathTask.php 905 2010-10-05 16:28:03Z mrook $ * @package phing.tasks.ext */ class PackageAsPathTask extends Task { /** The package to convert. */ protected $pckg; /** The value to store the conversion in. */ protected $name; /** * Executes the package to patch converstion and stores it * in the user property value. */ public function main() { $this->project->setUserProperty($this->name, strtr($this->pckg, '.', '/')); } /** * @param string $pckg the package to convert */ public function setPackage($pckg) { $this->pckg = $pckg; } /** * @param string $name the Ant variable to store the path in */ public function setName($name) { $this->name = $name; } }