Changeset 637
- Timestamp:
- 04/27/07 16:40:59 (1 year ago)
- Files:
-
- trunk/build.xml (modified) (1 diff)
- trunk/examples/build.xml (modified) (2 diffs)
- trunk/src/main/resources/phing/build-stubbles.xml (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/build.xml
r635 r637 20 20 <!-- Setup examples --> 21 21 <target name="setup-examples" description="Setup the included examples"> 22 <phing phingfile="${project.basedir}/examples/build.xml" inheritAll="false" /> 22 <phing phingfile="${project.basedir}/examples/build.xml" inheritAll="false"> 23 <property name="javascript.srcpath" value="${project.basedir}/src/main/javascript" /> 24 </phing> 23 25 </target> 24 26 trunk/examples/build.xml
r635 r637 32 32 <mkdir dir="${examples.base.dir}/javascript"/> 33 33 <copy todir="${examples.base.dir}/javascript"> 34 <fileset dir="${ project.basedir}/../src/main/javascript">34 <fileset dir="${javascript.srcpath}"> 35 35 <include name="**/*.js"/> 36 36 </fileset> … … 82 82 </or> 83 83 <then> 84 <append destFile=" build.properties" text="yui.local.use=no${line.separator}"/>84 <append destFile="../build.properties" text="yui.local.use=no${line.separator}"/> 85 85 </then> 86 86 <else> 87 <append destFile=" build.properties" text="yui.local.use=yes${line.separator}"/>87 <append destFile="../build.properties" text="yui.local.use=yes${line.separator}"/> 88 88 </else> 89 89 </if> trunk/src/main/resources/phing/build-stubbles.xml
r632 r637 14 14 --> 15 15 <target name="setup-project" 16 depends="copy-dist-files, init-stubbles, cache-permission-check, setup-json-rpc, setup-logging "16 depends="copy-dist-files, init-stubbles, cache-permission-check, setup-json-rpc, setup-logging, setup-website" 17 17 description="Creates a working project environment from a fresh build."> 18 18 </target> … … 60 60 </filterchain> 61 61 </copy> 62 <copy todir="${project.basedir}/examples/javascript"> 63 <fileset dir="${project.basedir}/docroot/javascript"> 64 <include name="**/*.js"/> 65 </fileset> 66 </copy> 62 <phing phingfile="${project.basedir}/examples/build.xml" inheritAll="false" target="json-rpc"> 63 <property name="javascript.srcpath" value="${project.basedir}/docroot/javascript" /> 64 </phing> 65 <phing phingfile="${project.basedir}/examples/json-rpc/build.xml" inheritAll="false" /> 67 66 </then> 68 67 <else> … … 90 89 <append destFile="build.properties" text="logging.enabled=false${line.separator}"/> 91 90 <echo>Logging initialization skipped.</echo> 91 </else> 92 </if> 93 </target> 94 95 <!-- Enable website functionality --> 96 <target name="setup-website" description="Basic setup for logging functionality"> 97 <copy file="${stubbles.config.path}/xml/config-dist.xml" tofile="${stubbles.config.path}/xml/config.xml" overwrite="true" /> 98 <copy file="${stubbles.config.path}/xml/interceptors-dist.xml" tofile="${stubbles.config.path}/xml/interceptors.xml" overwrite="true" /> 99 <copy file="${stubbles.config.path}/xml/processors-dist.xml" tofile="${stubbles.config.path}/xml/processors.xml" overwrite="true" /> 100 <input propertyname="variantmanager.enabled" promptChar="?">Do you want to enable variant manager functionality? (Y/N)</input> 101 <if> 102 <or> 103 <equals arg1="${variantmanager.enabled}" arg2="Y"/> 104 <equals arg1="${variantmanager.enabled}" arg2="y"/> 105 </or> 106 <then> 107 <echo>-------------------------------------</echo> 108 <echo>| Setting up VariantManager package |</echo> 109 <echo>-------------------------------------</echo> 110 <copy file="${stubbles.config.path}/xml/variantmanager-dist.xml" tofile="${stubbles.config.path}/xml/variantmanager.xml" overwrite="true" /> 111 <append destFile="build.properties" text="variantmanager.enabled=true${line.separator}"/> 112 </then> 113 <else> 114 <append destFile="build.properties" text="variantmanager.enabled=false${line.separator}"/> 115 <echo>VariantManager initialization skipped.</echo> 92 116 </else> 93 117 </if>
