Changeset 3053
- Timestamp:
- 10/19/08 06:54:43 (3 months ago)
- Location:
- branches/1.0
- Files:
-
- 3 modified
-
CHANGELOG (modified) (1 diff)
-
src/build/agavi/phing/AgaviBuildLogger.php (modified) (2 diffs)
-
src/build/agavi/script/agavi.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.0/CHANGELOG
r3046 r3053 2 2 =============== 3 3 4 1.0.0 beta 4 (October 1 7, 2008)4 1.0.0 beta 4 (October 19, 2008) 5 5 ------------------------------- 6 6 7 CHG: Clean up the Phing components of the project configuration system (#875) (Noah) 7 8 CHG: Change Form Population Filter to use validation system's ability to more accurately handle different sources of input (#786) (David) 8 9 CHG: Validation system needs to be able to tell two fields of same names, but from different sources, apart (#785) (Dominik) -
branches/1.0/src/build/agavi/phing/AgaviBuildLogger.php
r2596 r3053 14 14 // +---------------------------------------------------------------------------+ 15 15 16 require_once('phing/listener/ DefaultLogger.php');16 require_once('phing/listener/AnsiColorLogger.php'); 17 17 18 18 /** … … 30 30 * @version $Id$ 31 31 */ 32 class AgaviBuildLogger extends DefaultLogger32 class AgaviBuildLogger extends AnsiColorLogger 33 33 { 34 34 public function buildStarted(BuildEvent $event) -
branches/1.0/src/build/agavi/script/agavi.php
r2603 r3053 41 41 $GLOBALS['PROPERTIES'] = array(); 42 42 $GLOBALS['SHOW_LIST'] = false; 43 $GLOBALS['VERBOSE'] = false; 43 44 $GLOBALS['LOGGER'] = 'AgaviProxyBuildLogger'; 44 45 $GLOBALS['BUILD'] = new PhingFile(BUILD_DIRECTORY . '/build.xml'); … … 52 53 $GLOBALS['OUTPUT']->write(' -v --version Displays relevant version information' . PHP_EOL); 53 54 $GLOBALS['OUTPUT']->write(' -l --list --targets Displays the list of available targets' . PHP_EOL); 54 $GLOBALS['OUTPUT']->write(' -D --define <property> <value> Defines a build property' . PHP_EOL); 55 $GLOBALS['OUTPUT']->write(' -D --define <property> <value> Defines a configuration property' . PHP_EOL); 56 $GLOBALS['OUTPUT']->write(' --verbose Provides more verbose configuration information' . PHP_EOL); 55 57 $GLOBALS['OUTPUT']->write(' --agavi-source-directory <path> Sets the Agavi source directory to <path>' . PHP_EOL); 56 58 $GLOBALS['OUTPUT']->write(' --include-path <path> Appends <path> to the PHP include path' . PHP_EOL); 57 $GLOBALS['OUTPUT']->write(' --logger <class> Sets the buildlogger class to <class>' . PHP_EOL);59 $GLOBALS['OUTPUT']->write(' --logger <class> Sets the configuration logger class to <class>' . PHP_EOL); 58 60 } 59 61 … … 66 68 function input_version(AgaviOptionParser $parser, $name, $arguments, $scriptArguments) 67 69 { 68 $GLOBALS['OUTPUT']->write('Agavi buildsystem, script version $Id$' . PHP_EOL);70 $GLOBALS['OUTPUT']->write('Agavi project configuration system, script version $Id$' . PHP_EOL); 69 71 $GLOBALS['OUTPUT']->write(Phing::getPhingVersion() . PHP_EOL); 70 72 exit(0); … … 82 84 83 85 $GLOBALS['PROPERTIES'][$name] = $value; 86 } 87 88 function input_verbose(AgaviOptionParser $parser, $name, $arguments, $scriptArguments) 89 { 90 $GLOBALS['VERBOSE'] = true; 84 91 } 85 92 … … 113 120 $parser->addOption('list', array('l'), array('list', 'targets'), 'input_list'); 114 121 $parser->addOption('define', array('D'), array('define'), 'input_define', 2); 122 $parser->addOption('verbose', array(), array('verbose'), 'input_verbose'); 115 123 $parser->addOption('agavi_source_directory', array(), array('agavi-source-directory'), 'input_agavi_source_directory', 1); 116 124 $parser->addOption('include_path', array(), array('include-path'), 'input_include_path', 1); … … 222 230 } 223 231 $logger = new $GLOBALS['LOGGER'](); 224 $logger->setMessageOutputLevel( Project::MSG_INFO);232 $logger->setMessageOutputLevel($GLOBALS['VERBOSE'] ? Project::MSG_VERBOSE : Project::MSG_INFO); 225 233 $logger->setOutputStream($GLOBALS['OUTPUT']); 226 234 $logger->setErrorStream($GLOBALS['ERROR']);

