Development

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

You must first sign up to be able to contribute.

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

Revision 24011, 1.0 kB (checked in by Kris.Wallsmith, 5 years ago)

[1.3] fixed coding standards, added simple test coverage for sfPhing

  • 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   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 }
41
Note: See TracBrowser for help on using the browser.