|
Revision 24011, 1.0 kB
(checked in by Kris.Wallsmith, 4 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 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
require_once('phing/Phing.php'); |
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 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 |
|
|---|
| 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 |
|
|---|