Changeset 1843
- Timestamp:
- 08/25/06 10:43:58 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
tools/pake/trunk/lib/pake/tasks/pakePhingTask.class.php
r1791 r1843 52 52 Phing::setProperty('phing.home', getenv('PHING_HOME')); 53 53 54 ob_start(array('pakePhingTask', 'colorize'), 2); 54 55 $m = new pakePhing(); 55 56 $m->execute($args); 56 57 $m->runBuild(); 58 ob_end_clean(); 59 } 60 61 public static function colorize($text) 62 { 63 return preg_replace(array('#(\[.+?\])#e', '#(\+ [^ ]+)#e'), array('pakeColor::colorize("$1", "INFO")', 'pakeColor::colorize("$1", "INFO")'), $text); 57 64 } 58 65 }