| 1 |
lars |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/*
|
|
|
4 |
* This file is part of the symfony package.
|
|
|
5 |
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
|
|
6 |
*
|
|
|
7 |
* For the full copyright and license information, please view the LICENSE
|
|
|
8 |
* file that was distributed with this source code.
|
|
|
9 |
*/
|
|
|
10 |
|
|
|
11 |
require_once('phing/Phing.php');
|
|
|
12 |
|
|
|
13 |
/**
|
|
|
14 |
* @package symfony
|
|
|
15 |
* @subpackage command
|
|
|
16 |
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
|
|
|
17 |
* @version SVN: $Id: sfPhing.class.php 24039 2009-11-16 17:52:14Z Kris.Wallsmith $
|
|
|
18 |
*/
|
|
|
19 |
class sfPhing extends Phing
|
|
|
20 |
{
|
|
|
21 |
static public function getPhingVersion()
|
|
|
22 |
{
|
|
|
23 |
return 'sfPhing';
|
|
|
24 |
}
|
|
|
25 |
|
|
|
26 |
/**
|
|
|
27 |
* @see Phing
|
|
|
28 |
*/
|
|
|
29 |
public function runBuild()
|
|
|
30 |
{
|
|
|
31 |
// workaround for included phing 2.3 which by default loads many tasks
|
|
|
32 |
// that are not needed and incompatible (eg phing.tasks.ext.FtpDeployTask)
|
|
|
33 |
// by placing current directory on the include path our defaults will be loaded
|
|
|
34 |
// see ticket #5054
|
|
|
35 |
$includePath = get_include_path();
|
|
|
36 |
set_include_path(dirname(__FILE__).PATH_SEPARATOR.$includePath);
|
|
|
37 |
parent::runBuild();
|
|
|
38 |
set_include_path($includePath);
|
|
|
39 |
}
|
|
|
40 |
}
|