Development

/branches/1.2/lib/plugins/sfPropelPlugin/lib/task/sfPhing.class.php

You must first sign up to be able to contribute.

root/branches/1.2/lib/plugins/sfPropelPlugin/lib/task/sfPhing.class.php

Revision 13311, 1.0 kB (checked in by FabianLange, 6 years ago)

[1.2] removed Propel 1.3 phing dependency on fancy tasks requiring for example PEAR . This workaround simply prevents loading the original phing 2.3 default tasks loaded, and loads our own limited subset of that. As a nice side effect this improves performance of the propel tasks. fixes #5054

  • Property svn:mime-type set to text/x-php
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
Line 
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$
18  */
19 class sfPhing extends Phing
20 {
21   public static function getPhingVersion()
22   {
23     return 'sfPhing';
24   }
25
26   function runBuild() {
27     // workaround for included phing 2.3 which by default loads many tasks
28     // that are not needed and incompatible (eg phing.tasks.ext.FtpDeployTask)
29     // by placing current directory on the include path our defaults will be loaded
30     // see ticket #5054
31     $includePath = ini_get('include_path');
32     ini_set('include_path',dirname(__FILE__).PATH_SEPARATOR.$includePath);
33     parent::runBuild();
34     ini_set('include_path',$includePath);
35   }
36 }
37
Note: See TracBrowser for help on using the browser.