|
Revision 307, 1.4 kB
(checked in by hans, 9 months ago)
|
Refs #188 - Adding work-in-progress (still-broken!) namespace support.
|
- Property svn:keywords set to
author date id revision
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
ini_set('track_errors', 1); |
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
if (getenv('PHP_CLASSPATH')) { |
|---|
| 17 |
define('PHP_CLASSPATH', getenv('PHP_CLASSPATH') . PATH_SEPARATOR . get_include_path()); |
|---|
| 18 |
ini_set('include_path', PHP_CLASSPATH); |
|---|
| 19 |
} else { |
|---|
| 20 |
define('PHP_CLASSPATH', get_include_path()); |
|---|
| 21 |
} |
|---|
| 22 |
|
|---|
| 23 |
require_once 'phing/Phing.php'; |
|---|
| 24 |
|
|---|
| 25 |
spl_autoload_register(array('phing::Phing', 'autoload')); |
|---|
| 26 |
|
|---|
| 27 |
|
|---|
| 28 |
phing::Phing::startup(); |
|---|
| 29 |
|
|---|
| 30 |
|
|---|
| 31 |
|
|---|
| 32 |
|
|---|
| 33 |
|
|---|
| 34 |
|
|---|
| 35 |
phing::Phing::setProperty('phing.home', getenv('PHING_HOME')); |
|---|
| 36 |
|
|---|
| 37 |
|
|---|
| 38 |
|
|---|
| 39 |
$args = isset($argv) ? $argv : $_SERVER['argv']; |
|---|
| 40 |
array_shift($args); |
|---|
| 41 |
|
|---|
| 42 |
/* fire main application */ |
|---|
| 43 |
phing::Phing::fire($args); |
|---|
| 44 |
|
|---|
| 45 |
|
|---|
| 46 |
|
|---|
| 47 |
|
|---|
| 48 |
|
|---|
| 49 |
phing::Phing::halt(0); |
|---|
| 50 |
|
|---|
| 51 |
?> |
|---|