31 lines
815 B
PHP
31 lines
815 B
PHP
<?php
|
|
|
|
namespace Propel\PropelBundle\Command;
|
|
|
|
require_once 'phing/Phing.php';
|
|
|
|
/**
|
|
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
|
|
*/
|
|
class Phing extends \Phing
|
|
{
|
|
static public function getPhingVersion()
|
|
{
|
|
return 'Phing/Symfony';
|
|
}
|
|
|
|
/**
|
|
* @see Phing
|
|
*/
|
|
public function runBuild()
|
|
{
|
|
// workaround for included phing 2.3 which by default loads many tasks
|
|
// that are not needed and incompatible (eg phing.tasks.ext.FtpDeployTask)
|
|
// by placing current directory on the include path our defaults will be loaded
|
|
// see ticket #5054
|
|
$includePath = get_include_path();
|
|
set_include_path(dirname(__FILE__).PATH_SEPARATOR.$includePath);
|
|
parent::runBuild();
|
|
set_include_path($includePath);
|
|
}
|
|
}
|