Changeset 1683
- Timestamp:
- 07/06/08 20:37:23 (5 months ago)
- Files:
-
- forge/star/VERSION (modified) (1 diff)
- forge/star/build.xml (modified) (4 diffs)
- forge/star/src/main/php/org/stubbles/star/StarArchive.php (modified) (1 diff)
- forge/star/src/main/php/org/stubbles/star/StarClassRegistry.php (modified) (1 diff)
- forge/star/src/main/resources/build/compile-reader.ini (deleted)
- forge/star/src/main/resources/build/compile-writer-archive.ini (modified) (2 diffs)
- forge/star/src/main/resources/build/compile-writer-cli.ini (modified) (2 diffs)
- forge/star/src/main/resources/build/preface-reader.php (deleted)
- forge/star/src/main/resources/build/preface-writer.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
forge/star/VERSION
r1681 r1683 1 0. 7.11 0.8.0 forge/star/build.xml
r1679 r1683 1 1 <?xml version="1.0" encoding="utf-8"?> 2 2 <project name="star" basedir="." default="main"> 3 <property name="pkg.dir" value="src/main/php/org/stubbles/star" />3 <property name="pkg.dir" value="src/main/php/org/stubbles/star"/> 4 4 <property name="pkg.name" value="star-${version}"/> 5 5 <property name="build.src.dir" value="build/${pkg.name}"/> … … 23 23 <echo>-----------------------------</echo> 24 24 <delete dir="${build.src.dir}"/> 25 <copy file="${pkg.dir}/StarStreamWrapper.php" tofile="${build.src.dir}/StarStreamWrapper.php" /> 26 <copy file="${pkg.dir}/StarException.php" tofile="${build.src.dir}/StarException.php" /> 27 <copy file="LICENSE" tofile="${build.src.dir}/LICENSE" /> 25 <copy file="LICENSE" tofile="${build.src.dir}/LICENSE"/> 28 26 <append destFile="${build.src.dir}/VERSION">star version ${version}</append> 29 27 </target> … … 33 31 <echo>| Creating star files |</echo> 34 32 <echo>-----------------------------</echo> 35 <exec command="php "build.php" -i "src/main/resources/build/compile-writer-archive.ini" -t "${build.src.dir}/starWriter.php" -r "${pkg.dir}"" passthru="true" /> 36 <exec command="php "build.php" -i "src/main/resources/build/compile-writer-cli.ini" -t "${build.src.dir}/starWriter-cli.php" -r "${pkg.dir}"" passthru="true" /> 37 <exec command="php "build.php" -i "src/main/resources/build/compile-reader.ini" -t "${build.src.dir}/starReader.php" -r "${pkg.dir}"" passthru="true" /> 33 <php function="file_get_contents" returnProperty="StarStreamWrapper"> 34 <param value="src/main/php/org/stubbles/star/StarStreamWrapper.php"/> 35 </php> 36 <php function="file_get_contents" returnProperty="StarException"> 37 <param value="src/main/php/org/stubbles/star/StarException.php"/> 38 </php> 39 <php function="file_get_contents" returnProperty="StarClassRegistry"> 40 <param value="src/main/php/org/stubbles/star/StarClassRegistry.php"/> 41 </php> 42 <php function="file_put_contents"> 43 <param value="${build.src.dir}/starReader.php"/> 44 <param value="${StarStreamWrapper}${StarException}${StarClassRegistry}<?php StarStreamWrapper::register(); ?>"/> 45 </php> 46 <exec command="php "build.php" -i "src/main/resources/build/compile-writer-archive.ini" -t "${build.src.dir}/starWriter.php" -r "${pkg.dir}"" passthru="true"/> 47 <exec command="php "build.php" -i "src/main/resources/build/compile-writer-cli.ini" -t "${build.src.dir}/starWriter-cli.php" -r "${pkg.dir}"" passthru="true"/> 38 48 </target> 39 49 … … 43 53 <echo>-----------------------------</echo> 44 54 <property name="tgzfile" value="build/${pkg.name}.tgz"/> 45 <delete file="${tgzfile}"/>55 <delete file="${tgzfile}"/> 46 56 <tar compression="gzip" destFile="${tgzfile}" basedir="build"> 47 57 <fileset dir="build"> 48 <include name="${pkg.name}/**"/>58 <include name="${pkg.name}/**"/> 49 59 </fileset> 50 60 </tar> forge/star/src/main/php/org/stubbles/star/StarArchive.php
r1681 r1683 125 125 if (strlen($this->preface) > 0) { 126 126 $preFace = ''; 127 if (true == $this->prependStreamWrapper) {127 if (true === $this->prependStreamWrapper) { 128 128 $dirname = str_replace('star://', '', dirname(__FILE__)); 129 $preFace .= file_get_contents($dirname . '/StarStreamWrapper.php'); 130 $preFace .= file_get_contents($dirname . '/StarException.php'); 131 $preFace .= "<?php StarStreamWrapper::register(); ?>"; 129 if (file_exists($dirname . '/starReader.php') === true) { 130 $preFace .= file_get_contents($dirname . '/starReader.php'); 131 } else { 132 $preFace .= file_get_contents($dirname . '/StarStreamWrapper.php'); 133 $preFace .= file_get_contents($dirname . '/StarException.php'); 134 $preFace .= file_get_contents($dirname . '/StarClassRegistry.php'); 135 $preFace .= "<?php StarStreamWrapper::register(); ?>"; 136 } 132 137 } 133 138 $preFace .= trim($this->preface) . "<?php __halt_compiler();"; forge/star/src/main/php/org/stubbles/star/StarClassRegistry.php
r1514 r1683 153 153 154 154 if (count(self::$libPathes) == 0) { 155 if (substr(__FILE__, 0, 7) === 'star://') { 156 $path = str_replace('star://', '', str_replace('?org::stubbles::star::StarClassRegistry', '', __FILE__)); 157 self::$libPathes[dirname($path)] = true; 158 } elseif (class_exists('stubConfig', false) === true) { 159 self::$libPathes[stubConfig::getLibPath()] = true; 160 } else { 161 self::$libPathes[realpath(getcwd() . '/../lib')] = true; 162 } 155 self::$libPathes[dirname(__FILE__)] = true; 163 156 } 164 157 forge/star/src/main/resources/build/compile-writer-archive.ini
r1681 r1683 6 6 org::stubbles::star::StarWriter="src/main/php/org/stubbles/star/StarWriter.php" 7 7 org::stubbles::star::StarArchive="src/main/php/org/stubbles/star/StarArchive.php" 8 org::stubbles::star::StarClassRegistry="src/main/php/org/stubbles/star/StarClassRegistry.php"9 8 org::stubbles::star::StarConsole="src/main/php/org/stubbles/star/StarConsole.php" 10 9 … … 15 14 title = "Stubbles Archive Writer" 16 15 package = "org::stubbles::star" 17 version = "0. 7.1"16 version = "0.8.0" 18 17 author = "Stubbles Development Team <http://stubbles.net> 19 18 copyright = "© 2007-2008 Stubbles Development Team" forge/star/src/main/resources/build/compile-writer-cli.ini
r1681 r1683 6 6 org::stubbles::star::StarWriter="src/main/php/org/stubbles/star/StarWriter.php" 7 7 org::stubbles::star::StarArchive="src/main/php/org/stubbles/star/StarArchive.php" 8 org::stubbles::star::StarClassRegistry="src/main/php/org/stubbles/star/StarClassRegistry.php"9 8 org::stubbles::star::StarConsole="src/main/php/org/stubbles/star/StarConsole.php" 10 9 … … 16 15 title = "Stubbles Archive CLI Writer" 17 16 package = "org::stubbles::star" 18 version = "0. 7.1"17 version = "0.8.0" 19 18 author = "Stubbles Development Team <http://stubbles.net> 20 19 copyright = "© 2007-2008 Stubbles Development Team" forge/star/src/main/resources/build/preface-writer.php
r1679 r1683 3 3 require 'star://' . __FILE__ . '?org::stubbles::star::StarWriter'; 4 4 require 'star://' . __FILE__ . '?org::stubbles::star::StarArchive'; 5 require 'star://' . __FILE__ . '?org::stubbles::star::StarClassRegistry';6 5 require 'star://' . __FILE__ . '?org::stubbles::star::StarConsole'; 7 6 ?>
