Changeset 1871
- Timestamp:
- 09/30/08 16:51:53 (3 months ago)
- Files:
-
- framework/trunk/build.xml (modified) (1 diff)
- framework/trunk/projects/dist/config/php/config-dist.php (deleted)
- framework/trunk/projects/dist/config/php/config.php (modified) (1 diff)
- framework/trunk/projects/examples/config/php/config.php (modified) (1 diff)
- framework/trunk/projects/examples/docroot/bootstrap-stubbles.php (modified) (1 diff)
- framework/trunk/src/main/php/net/stubbles/lang/stubFactory.php (modified) (1 diff)
- framework/trunk/src/main/php/net/stubbles/stubClassLoader.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
framework/trunk/build.xml
r1850 r1871 62 62 </fileset> 63 63 </copy> 64 <copy file="${stubbles.base.dir}/projects/dist/config/php/config -dist.php" tofile="${build.src.dir}/projects/dist/config/php/config.php"/>64 <copy file="${stubbles.base.dir}/projects/dist/config/php/config.php" tofile="${build.src.dir}/projects/dist/config/php/config.php"/> 65 65 66 66 <mkdir dir="${build.src.dir}/projects/common/docroot/javascript"/> framework/trunk/projects/dist/config/php/config.php
r1763 r1871 179 179 return self::$commonPath; 180 180 } 181 182 /**183 * switch to use star files or not184 *185 * @return bool186 */187 public static function useStar()188 {189 return false;190 #return true;191 }192 181 } 193 182 ?> framework/trunk/projects/examples/config/php/config.php
r1763 r1871 158 158 return self::$commonPath; 159 159 } 160 161 /**162 * switch to use star files or not163 *164 * @return bool165 */166 public static function useStar()167 {168 return file_exists(self::getLibPath() . '/stubbles.php');169 }170 160 } 171 161 ?> framework/trunk/projects/examples/docroot/bootstrap-stubbles.php
r1763 r1871 5 5 require stubConfig::getLibPath() . DIRECTORY_SEPARATOR . 'stubbles.php'; 6 6 } else { 7 require stubConfig::getSourcePath() . DIRECTORY_SEPARATOR . 'php' . DIRECTORY_SEPARATOR . 'net' . DIRECTORY_SEPARATOR . 'stubbles' . DIRECTORY_SEPARATOR . 'stubClassLoader.php'; 7 8 require stubConfig::getLibPath() . DIRECTORY_SEPARATOR . 'starWriter.php'; 8 require stubConfig::getSourcePath() . DIRECTORY_SEPARATOR . 'php' . DIRECTORY_SEPARATOR . 'net' . DIRECTORY_SEPARATOR . 'stubbles' . DIRECTORY_SEPARATOR . 'stubClassLoader.php';9 9 } 10 10 ?> framework/trunk/src/main/php/net/stubbles/lang/stubFactory.php
r1763 r1871 36 36 { 37 37 self::$resourcePath = stubConfig::getSourcePath() . DIRECTORY_SEPARATOR . 'resources' . DIRECTORY_SEPARATOR; 38 if (stubConfig::useStar() == true && class_exists('StarClassRegistry', false) == true) { 39 self::$useStar = true; 40 } else { 41 self::$useStar = false; 42 } 38 self::$useStar = class_exists('StarClassRegistry', false); 43 39 } 44 40 // @codeCoverageIgnoreEnd framework/trunk/src/main/php/net/stubbles/stubClassLoader.php
r1822 r1871 155 155 private static function init() 156 156 { 157 if (stubConfig::useStar() == true && class_exists('StarClassRegistry', false) == true) { 158 self::$useStar = true; 159 } else { 160 self::$useStar = false; 161 } 162 157 self::$useStar = class_exists('StarClassRegistry', false); 163 158 self::$sourcePath = stubConfig::getSourcePath() . DIRECTORY_SEPARATOR . 'php' . DIRECTORY_SEPARATOR; 164 159 }
