Changeset 1872
- Timestamp:
- 09/30/08 17:01:36 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
framework/trunk/src/main/php/org/stubbles/phing/tasks/stubInitClassLoaderTask.php
r1763 r1872 7 7 * @package stubbles 8 8 * @subpackage phing_tasks 9 * @version $Id$ 9 10 */ 10 11 /** … … 38 39 } 39 40 40 if ( stubConfig::useStar() === true) {41 if (file_exists(stubConfig::getLibPath() . '/stubbles.php') === true) { 41 42 if ((include_once stubConfig::getLibPath() . '/stubbles.php') === false) { 42 43 $this->log('Error loading Stubbles library from ' . stubConfig::getLibPath() . '/stubbles.php', Project::MSG_ERR); … … 45 46 } 46 47 } else { 48 if (!@include_once stubConfig::getSourcePath() . '/php/net/stubbles/stubClassLoader.php') { 49 $this->log('Error loading stubClassLoader from ' . stubConfig::getSourcePath() . '/php/net/stubbles/stubClassLoader.php', Project::MSG_ERR); 50 $this->log('Either stubConfig::getSourcePath() is not correctly set, or you are not using a source distribution.', Project::MSG_ERR); 51 throw new BuildException('Error loading stubClassLoader from ' . stubConfig::getSourcePath() . '/php/net/stubbles/stubClassLoader.php'); 52 } 53 47 54 if ((include_once stubConfig::getLibPath() . '/starWriter.php') === false) { 48 55 $this->log('Error loading StarWriter from ' . stubConfig::getLibPath() . '/starWriter.php', Project::MSG_ERR); 49 56 $this->log('Either stubConfig::getLibPath() is not correctly set, or starWriter.php does not exist.', Project::MSG_ERR); 50 57 throw new BuildException('Error loading StarWriter from ' . stubConfig::getLibPath() . '/starWriter.php'); 51 }52 53 if (!@include_once stubConfig::getSourcePath() . '/php/net/stubbles/stubClassLoader.php') {54 $this->log('Error loading stubClassLoader from ' . stubConfig::getSourcePath() . '/php/net/stubbles/stubClassLoader.php', Project::MSG_ERR);55 $this->log('Either stubConfig::getSourcePath() is not correctly set, or you are not using a source distribution.', Project::MSG_ERR);56 throw new BuildException('Error loading stubClassLoader from ' . stubConfig::getSourcePath() . '/php/net/stubbles/stubClassLoader.php');57 58 } 58 59 }
