Changeset 686

Show
Ignore:
Timestamp:
05/29/07 21:48:27 (1 year ago)
Author:
schst
Message:

Moved setup-example functionality in own target that can be launched using "stubbles setup-examples"

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/resources/phing/build-stubbles.xml

    r684 r686  
    6868          </filterchain> 
    6969        </copy> 
    70         <input propertyname="jsonrpc.example.enabled" promptChar="?" defaultValue="Y">Do you want to enable the JSON-RPC examples? (Y/N)</input> 
    71         <if> 
    72           <or> 
    73             <equals arg1="${jsonrpc.example.enabled}" arg2="Y"/> 
    74             <equals arg1="${jsonrpc.example.enabled}" arg2="y"/> 
    75           </or> 
    76           <then> 
    77             <phing phingfile="${project.basedir}/examples/build.xml" inheritAll="false" target="json-rpc"> 
    78               <property name="javascript.srcpath" value="${project.basedir}/docroot/javascript" /> 
    79             </phing> 
    80           </then> 
    81           <else> 
    82             <echo>JSON-RPC example installation skipped.</echo> 
    83           </else> 
    84         </if> 
    8570      </then> 
    8671      <else> 
     
    135120      </else> 
    136121    </if> 
     122  </target> 
     123 
     124  <!-- 
     125    Setup examples 
     126  --> 
     127  <target name="setup-examples" depends="init-stubbles" description="Sets up all examples."> 
     128    <echo>----------------------------------</echo> 
     129    <echo>| Removing dist files            |</echo> 
     130    <echo>----------------------------------</echo> 
     131    <phing phingfile="${project.basedir}/examples/build.xml" inheritAll="false" target="main"> 
     132      <property name="javascript.srcpath" value="${project.basedir}/docroot/javascript" /> 
     133    </phing> 
    137134  </target> 
    138135 
  • trunk/src/main/resources/phing/stubbles.bat

    r653 r686  
    66if %1!==! goto setup-project 
    77if %1==setup-project goto setup-project 
     8if %1==setup-examples goto execute 
    89if %1==clean-dist goto execute 
    910if %1==clean-config goto execute 
  • trunk/src/main/resources/phing/stubbles.sh

    r651 r686  
    1212case $STUBCOMMAND in 
    1313   "setup-project") phing -f build-stubbles.xml setup-project;; 
     14   "setup-examples") phing -f build-stubbles.xml setup-examples;; 
    1415   "clean-dist") phing -f build-stubbles.xml clean-dist;; 
    1516   "clean-config") phing -f build-stubbles.xml clean-config;;