[CS-Project-svn_notify] SF.net SVN: cs-project:[915] trunk/1.2/lib/globalFunctions.php
Brought to you by:
crazedsanity
From: <cra...@us...> - 2009-02-03 18:51:34
|
Revision: 915 http://cs-project.svn.sourceforge.net/cs-project/?rev=915&view=rev Author: crazedsanity Date: 2009-02-03 18:51:29 +0000 (Tue, 03 Feb 2009) Log Message: ----------- First round of updates to cope with new versions of external libs. /lib/globalFunctions.php: * get_required_external_lib_versions(): -- changed some class names. -- changed required versions: + cs-content: 1.0.0-ALPHA3 + cs-phpxml: 1.0.0-ALPHA2 + cs-arrayToPath: 1.0.0 * check_external_lib_versions(): -- do the get_project() and get_version() calls in a try/catch block -- if an exception is caught, throw another exception to more easily find & fix the problem encountered. Modified Paths: -------------- trunk/1.2/lib/globalFunctions.php Modified: trunk/1.2/lib/globalFunctions.php =================================================================== --- trunk/1.2/lib/globalFunctions.php 2009-02-03 17:31:32 UTC (rev 914) +++ trunk/1.2/lib/globalFunctions.php 2009-02-03 18:51:29 UTC (rev 915) @@ -17,9 +17,9 @@ function get_required_external_lib_versions($projectName=NULL) { //format: {className} => array({projectName} => {exactVersion}) $requirements = array( - 'contentSystem' => array('cs-content', '0.10.12'), - 'XMLParser' => array('cs-phpxml', '0.5.6'), - 'arrayToPath' => array('cs-arrayToPath', '0.2.2') + 'contentSystem' => array('cs-content', '1.0.0-ALPHA3'), + 'cs_phpxmlParser' => array('cs-phpxml', '1.0.0-ALPHA2'), + 'cs_arrayToPath' => array('cs-arrayToPath', '1.0.0') ); if(!is_null($projectName)) { @@ -61,8 +61,13 @@ if($obj->isTest === TRUE) { //okay, get version & project names. if(method_exists($obj, 'get_version') && method_exists($obj, 'get_project')) { - $realVersion = $obj->get_version(); - $realProject = $obj->get_project(); + try { + $realVersion = $obj->get_version(); + $realProject = $obj->get_project(); + } + catch(exception $e) { + throw new exception(__METHOD__ .": unable to get project name or version for (". $className ."), DETAILS::: ". $e->getMessage()); + } if($realVersion === $matchVersion && $realProject === $matchProject) { //all looks good. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |