Changeset 511
- Timestamp:
- 04/14/07 12:37:45 (1 year ago)
- Files:
-
- trunk/config/php/config-dist.php (modified) (4 diffs)
- trunk/config/php/config.php (modified) (4 diffs)
- trunk/src/main/php/info/phing/tasks/stubInitTask.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/config/php/config-dist.php
r507 r511 20 20 * this method should return the path to the source directory 21 21 * 22 * By default its /path/to/stubbles/src/main /php.22 * By default its /path/to/stubbles/src/main. 23 23 * 24 24 * @return string … … 26 26 public static function getSourcePath() 27 27 { 28 return realpath(dirname(__FILE__) . '/../../src/main /php');28 return realpath(dirname(__FILE__) . '/../../src/main'); 29 29 } 30 30 … … 43 43 /** 44 44 * this method should return the path to the cache directory 45 * 46 * By default its /path/to/stubbles/cache. 45 47 * 46 48 * @return string … … 53 55 /** 54 56 * this method should return the path to the config directory 57 * 58 * By default its /path/to/stubbles/config. 55 59 * 56 * @return unknown60 * @return string 57 61 */ 58 62 public static function getConfigPath() trunk/config/php/config.php
r507 r511 20 20 * this method should return the path to the source directory 21 21 * 22 * By default its /path/to/stubbles/src/main /php.22 * By default its /path/to/stubbles/src/main. 23 23 * 24 24 * @return string … … 26 26 public static function getSourcePath() 27 27 { 28 return realpath(dirname(__FILE__) . '/../../src/main /php');28 return realpath(dirname(__FILE__) . '/../../src/main'); 29 29 } 30 30 … … 43 43 /** 44 44 * this method should return the path to the cache directory 45 * 46 * By default its /path/to/stubbles/cache. 45 47 * 46 48 * @return string … … 53 55 /** 54 56 * this method should return the path to the config directory 57 * 58 * By default its /path/to/stubbles/config. 55 59 * 56 60 * @return unknown trunk/src/main/php/info/phing/tasks/stubInitTask.php
r507 r511 4 4 * 5 5 * @author Stephan Schmidt <schst@stubbles.net> 6 * @author Frank Kleine <mikey@stubbles.net> 6 7 * @package stubbles 7 8 * @subpackage phing 8 9 */ 9 10 10 /** 11 11 * Uses the Phing Task 12 12 */ 13 13 require_once 'phing/Task.php'; 14 15 14 /** 16 15 * Task to load stubbles 17 16 * 18 * @author Stephan Schmidt <schst@stubbles.net>19 17 * @package stubbles 20 18 * @subpackage phing … … 29 27 protected $configPath; 30 28 29 /** 30 * set the config path 31 * 32 * @param string $configPath 33 */ 31 34 public function setConfigPath($configPath) { 32 35 $this->configPath = realpath($configPath); … … 47 50 { 48 51 require_once $this->configPath . '/php/config.php'; 49 require_once stubConfig::getLibPath() . '/starReader.php'; 50 if (stubConfig::useStar()) { 51 require_once stubConfig::getLibPath() . '/stubbles.php'; 52 if (stubConfig::useStar() == true) { 53 require_once stubConfig::getLibPath() . '/stubbles.php'; 52 54 } else { 53 require_once stubConfig::getSourcePath() . '/net/stubbles/stubClassLoader.php'; 55 require_once stubConfig::getLibPath() . '/starReader.php'; 56 require_once stubConfig::getSourcePath() . '/php/net/stubbles/stubClassLoader.php'; 54 57 } 58 55 59 stubClassLoader::load('net.stubbles.util.stubFactory'); 56 60 }
