Changeset 681
- Timestamp:
- 05/29/07 21:14:25 (1 year ago)
- Files:
-
- trunk/config-examples (deleted)
- trunk/examples (modified) (1 prop)
- trunk/examples/build.xml (modified) (7 diffs)
- trunk/examples/cache (copied) (copied from trunk/cache)
- trunk/examples/cache/xml (copied) (copied from trunk/cache/xml)
- trunk/examples/config (copied) (copied from trunk/config)
- trunk/examples/config/errors (copied) (copied from trunk/config/errors)
- trunk/examples/config/php (copied) (copied from trunk/config/php)
- trunk/examples/config/php/config-dist.php (modified) (7 diffs)
- trunk/examples/config/php/config.php (modified) (7 diffs)
- trunk/examples/config/xml (copied) (copied from trunk/config/xml)
- trunk/examples/docroot (added)
- trunk/examples/docroot/bootstrap-stubbles.php (moved) (moved from trunk/examples/bootstrap-stubbles.php) (1 diff)
- trunk/examples/docroot/core (moved) (moved from trunk/examples/core)
- trunk/examples/docroot/core/error-simple.php (copied) (copied from trunk/examples/core/error-simple.php)
- trunk/examples/docroot/data (moved) (moved from trunk/examples/data)
- trunk/examples/docroot/data/images (copied) (copied from trunk/examples/data/images)
- trunk/examples/docroot/events (moved) (moved from trunk/examples/events)
- trunk/examples/docroot/events/index.php (copied) (copied from trunk/examples/events/index.php)
- trunk/examples/docroot/events/queue.php (copied) (copied from trunk/examples/events/queue.php)
- trunk/examples/docroot/foreignClassLoaders (moved) (moved from trunk/examples/foreignClassLoaders)
- trunk/examples/docroot/foreignClassLoaders/README (copied) (copied from trunk/examples/foreignClassLoaders/README)
- trunk/examples/docroot/foreignClassLoaders/index.php (copied) (copied from trunk/examples/foreignClassLoaders/index.php)
- trunk/examples/docroot/index.php (moved) (moved from trunk/examples/index.php)
- trunk/examples/docroot/ipc07 (moved) (moved from trunk/examples/ipc07)
- trunk/examples/docroot/ipc07/csvWriter.php (copied) (copied from trunk/examples/ipc07/csvWriter.php)
- trunk/examples/docroot/ipc07/xmlSerializer.php (copied) (copied from trunk/examples/ipc07/xmlSerializer.php)
- trunk/examples/docroot/json-rpc (moved) (moved from trunk/examples/json-rpc)
- trunk/examples/docroot/json-rpc/README (copied) (copied from trunk/examples/json-rpc/README)
- trunk/examples/docroot/json-rpc/build.xml (copied) (copied from trunk/examples/json-rpc/build.xml)
- trunk/examples/docroot/json-rpc/index.php (copied) (copied from trunk/examples/json-rpc/index.php)
- trunk/examples/docroot/json-rpc/jsonrpc.php (copied) (copied from trunk/examples/json-rpc/jsonrpc.php)
- trunk/examples/docroot/logging (moved) (moved from trunk/examples/logging)
- trunk/examples/docroot/logging/index.php (copied) (copied from trunk/examples/logging/index.php)
- trunk/examples/docroot/showsource.php (moved) (moved from trunk/examples/showsource.php)
- trunk/examples/docroot/variants (moved) (moved from trunk/examples/variants)
- trunk/examples/docroot/variants/variants.php (copied) (copied from trunk/examples/variants/variants.php)
- trunk/examples/docroot/websites-memphis (moved) (moved from trunk/examples/websites-memphis)
- trunk/examples/docroot/websites-memphis/index.php (copied) (copied from trunk/examples/websites-memphis/index.php)
- trunk/examples/docroot/websites-memphis/static (copied) (copied from trunk/examples/websites-memphis/static)
- trunk/examples/docroot/websites-xml (moved) (moved from trunk/examples/websites-xml)
- trunk/examples/docroot/websites-xml/index.php (copied) (copied from trunk/examples/websites-xml/index.php)
- trunk/examples/docroot/xml (moved) (moved from trunk/examples/xml)
- trunk/examples/docroot/xml/serializer.php (copied) (copied from trunk/examples/xml/serializer.php)
- trunk/examples/docroot/xml/streamWriter.php (copied) (copied from trunk/examples/xml/streamWriter.php)
- trunk/examples/log (copied) (copied from trunk/log)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/examples
- Property svn:ignore changed from
yui
javascript
to
yui
javascript
examples.properties
- Property svn:ignore changed from
trunk/examples/build.xml
r652 r681 2 2 <project name="Stubbles" basedir="." default="main"> 3 3 <property name="examples.base.dir" value="${project.basedir}" /> 4 <property file=" ../examples.properties" />4 <property file="examples.properties" /> 5 5 6 6 <target name="main" depends="prepare-examples, foreignClassLoader, json-rpc" description="Setup all examples" /> 7 7 8 8 <target name="prepare-examples" description="Prepare folders for the examples."> 9 <echo>Project basedir: ${project.basedir}</echo> 9 10 <!-- cache permissions --> 10 11 <if> … … 15 16 <else> 16 17 <input propertyname="cache.permissions" promptChar=":" defaultValue="0777">Please supply permissions for cache folders</input> 17 <append destFile=" ../examples.properties" text="cache.permissions=${cache.permissions}${line.separator}"/>18 <append destFile="examples.properties" text="cache.permissions=${cache.permissions}${line.separator}"/> 18 19 </else> 19 20 </if> 20 21 <chmod file="${project.basedir}/../lib" mode="${cache.permissions}"/> 21 <chmod file="${project.basedir}/ ../cache" mode="${cache.permissions}"/>22 <chmod file="${project.basedir}/ ../cache/xml" mode="${cache.permissions}"/>23 <chmod file="${project.basedir}/ ../cache/xml/elements" mode="${cache.permissions}"/>22 <chmod file="${project.basedir}/cache" mode="${cache.permissions}"/> 23 <chmod file="${project.basedir}/cache/xml" mode="${cache.permissions}"/> 24 <chmod file="${project.basedir}/cache/xml/elements" mode="${cache.permissions}"/> 24 25 <delete file="${stubbles.lib.path}/.cache" verbose="true"/> 25 26 <delete> 26 <fileset dir="${project.basedir}/ ../cache">27 <fileset dir="${project.basedir}/cache"> 27 28 <include name="**/*.cache" /> 28 29 </fileset> … … 37 38 <else> 38 39 <input propertyname="log.permissions" promptChar=":" defaultValue="0777">Please supply permissions for log folders</input> 39 <append destFile=" ../examples.properties" text="log.permissions=${log.permissions}${line.separator}"/>40 <append destFile="examples.properties" text="log.permissions=${log.permissions}${line.separator}"/> 40 41 </else> 41 42 </if> … … 46 47 <resolvepath propertyName="examples.absolute.dir" file="${project.basedir}"/> 47 48 <!-- Foreign Class loader --> 48 <resolvepath propertyName="example.foreignclass.readme" file="${project.basedir}/ foreignClassLoaders/README"/>49 <resolvepath propertyName="example.foreignclass.readme" file="${project.basedir}/docroot/foreignClassLoaders/README"/> 49 50 <echo>-------------------------------------------</echo> 50 51 <echo>| Setting up foreign class loader example |</echo> … … 68 69 <echo>| Setting up JSON-RPC example |</echo> 69 70 <echo>-------------------------------------------</echo> 70 <mkdir dir="${examples.base.dir}/ javascript"/>71 <copy todir="${examples.base.dir}/ javascript">71 <mkdir dir="${examples.base.dir}/docroot/javascript"/> 72 <copy todir="${examples.base.dir}/docroot/javascript"> 72 73 <fileset dir="${javascript.srcpath}"> 73 74 <include name="**/*.js"/> … … 109 110 <echo>YAHOO! User Interface library is installed.</echo> 110 111 <echo>Will use this version in examples.</echo> 111 <append destFile=" ../examples.properties" text="yui.local.use=yes${line.separator}"/>112 <append destFile="examples.properties" text="yui.local.use=yes${line.separator}"/> 112 113 </then> 113 114 <else> … … 120 121 </or> 121 122 <then> 122 <append destFile=" ../examples.properties" text="yui.local.use=no${line.separator}"/>123 <append destFile="examples.properties" text="yui.local.use=no${line.separator}"/> 123 124 </then> 124 125 <else> 125 <append destFile=" ../examples.properties" text="yui.local.use=yes${line.separator}"/>126 <append destFile="examples.properties" text="yui.local.use=yes${line.separator}"/> 126 127 </else> 127 128 </if> trunk/examples/config/php/config-dist.php
r628 r681 1 1 <?php 2 2 /** 3 * use this class to configure your site 3 * use this class to configure the examples 4 * in a complete build 4 5 */ 5 6 class stubConfig … … 46 47 { 47 48 if (null == self::$libPath) { 48 self::$libPath = realpath(dirname(__FILE__) . ' /../../lib');49 self::$libPath = realpath(dirname(__FILE__) . '../../../../lib'); 49 50 } 50 51 51 52 return self::$libPath; 52 53 } … … 62 63 { 63 64 if (null == self::$sourcePath) { 64 self::$sourcePath = realpath(dirname(__FILE__) . ' /../../src/main');65 self::$sourcePath = realpath(dirname(__FILE__) . '../../../../src/main'); 65 66 } 66 67 67 68 return self::$sourcePath; 68 69 } … … 80 81 self::$logPath = realpath(dirname(__FILE__) . '/../../log'); 81 82 } 82 83 83 84 return self::$logPath; 84 85 } … … 96 97 self::$cachePath = realpath(dirname(__FILE__) . '/../../cache'); 97 98 } 98 99 99 100 return self::$cachePath; 100 101 } … … 105 106 * By default its /path/to/stubbles/config. 106 107 * 107 * @return string108 * @return unknown 108 109 */ 109 110 public static function getConfigPath() … … 112 113 self::$configPath = realpath(dirname(__FILE__) . '/../'); 113 114 } 114 115 115 116 return self::$configPath; 116 117 } trunk/examples/config/php/config.php
r613 r681 1 1 <?php 2 2 /** 3 * use this class to configure your site 3 * use this class to configure the examples 4 * in a checkout 4 5 */ 5 6 class stubConfig … … 46 47 { 47 48 if (null == self::$libPath) { 48 self::$libPath = realpath(dirname(__FILE__) . ' /../../lib');49 self::$libPath = realpath(dirname(__FILE__) . '../../../../lib'); 49 50 } 50 51 51 52 return self::$libPath; 52 53 } … … 62 63 { 63 64 if (null == self::$sourcePath) { 64 self::$sourcePath = realpath(dirname(__FILE__) . ' /../../src/main');65 self::$sourcePath = realpath(dirname(__FILE__) . '../../../../src/main'); 65 66 } 66 67 67 68 return self::$sourcePath; 68 69 } … … 80 81 self::$logPath = realpath(dirname(__FILE__) . '/../../log'); 81 82 } 82 83 83 84 return self::$logPath; 84 85 } … … 96 97 self::$cachePath = realpath(dirname(__FILE__) . '/../../cache'); 97 98 } 98 99 99 100 return self::$cachePath; 100 101 } … … 112 113 self::$configPath = realpath(dirname(__FILE__) . '/../'); 113 114 } 114 115 115 116 return self::$configPath; 116 117 } … … 124 125 { 125 126 return false; 126 #return true;127 127 } 128 128 } trunk/examples/docroot/bootstrap-stubbles.php
r680 r681 1 1 <?php 2 require dirname(__FILE__) . '/../config -examples/php/config.php';2 require dirname(__FILE__) . '/../config/php/config.php'; 3 3 4 4 if (file_exists(stubConfig::getLibPath() . DIRECTORY_SEPARATOR . 'stubbles.php') == true) {
