Changeset 637

Show
Ignore:
Timestamp:
04/27/07 16:40:59 (1 year ago)
Author:
mikey
Message:

use example build file in checkout and release
added setup for website functionality

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/build.xml

    r635 r637  
    2020  <!-- Setup examples --> 
    2121  <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> 
    2325  </target> 
    2426 
  • trunk/examples/build.xml

    r635 r637  
    3232    <mkdir dir="${examples.base.dir}/javascript"/> 
    3333    <copy todir="${examples.base.dir}/javascript"> 
    34       <fileset dir="${project.basedir}/../src/main/javascript"> 
     34      <fileset dir="${javascript.srcpath}"> 
    3535        <include name="**/*.js"/> 
    3636      </fileset> 
     
    8282              </or> 
    8383              <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}"/> 
    8585              </then> 
    8686              <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}"/> 
    8888              </else> 
    8989            </if> 
  • trunk/src/main/resources/phing/build-stubbles.xml

    r632 r637  
    1414  --> 
    1515  <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
    1717          description="Creates a working project environment from a fresh build."> 
    1818  </target> 
     
    6060          </filterchain> 
    6161        </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" /> 
    6766      </then> 
    6867      <else> 
     
    9089        <append destFile="build.properties" text="logging.enabled=false${line.separator}"/> 
    9190        <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> 
    92116      </else> 
    93117    </if>