Changeset 1773
- Timestamp:
- 08/23/06 16:49:02 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
tools/pake/trunk/lib/pake/tasks/pakePhingTask.class.php
r1765 r1773 1 1 <?php 2 3 include_once 'phing/Phing.php'; 4 if (!class_exists('Phing')) 5 { 6 throw new pakeException('You must install Phing to use this task. (pear install http://phing.info/pear/phing-current.tgz)'); 7 } 2 8 3 9 class pakePhingTask … … 35 41 } 36 42 37 include_once 'phing/Phing.php';38 if (!class_exists('Phing'))39 {40 throw new pakeException('You must install Phing to use this task. (pear install http://phing.info/pear/phing-current.tgz)');41 }42 43 43 Phing::startup(); 44 44 Phing::setProperty('phing.home', getenv('PHING_HOME')); 45 45 46 try 47 { 48 $m = new Phing(); 49 $m->execute($args); 50 $m->runBuild(); 51 } 52 catch (Exception $e) 53 { 54 throw new Exception($e->getMessage()); 55 } 46 $m = new pakePhing(); 47 $m->execute($args); 48 $m->runBuild(); 56 49 } 57 50 } 51 52 class pakePhing extends Phing 53 { 54 function getPhingVersion() 55 { 56 return 'pakePhing'; 57 } 58 }