|
Revision 13311, 1.0 kB
(checked in by FabianLange, 4 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 |
|
|---|
| 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 |
public static function getPhingVersion() |
|---|
| 22 |
{ |
|---|
| 23 |
return 'sfPhing'; |
|---|
| 24 |
} |
|---|
| 25 |
|
|---|
| 26 |
function runBuild() { |
|---|
| 27 |
|
|---|
| 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 |
|
|---|