Changeset 635

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

moved example-related stuff into a separate build file
ignore javascript folder in examples

Files:

Legend:

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

    r634 r635  
    2020  <!-- Setup examples --> 
    2121  <target name="setup-examples" description="Setup the included examples"> 
    22     <resolvepath propertyName="examples.absolute.dir" file="${examples.base.dir}"/> 
    23     <!-- Foreign Class loader --> 
    24     <resolvepath propertyName="example.foreignclass.readme" file="${examples.absolute.dir}/foreignClassLoaders/README"/> 
    25     <echo>-------------------------------------------</echo> 
    26     <echo>| Setting up foreign class loader example |</echo> 
    27     <echo>-------------------------------------------</echo> 
    28     <if> 
    29       <available file="${project.basedir}/lib/lang.base.php" type="file"/> 
    30       <then> 
    31         <echo>XP Framework successfully installed.</echo> 
    32       </then> 
    33       <else> 
    34         <echo level="error">[Error] XP Framework is *not* installed.</echo> 
    35         <echo level="error"/> 
    36         <echo level="error">See ${example.foreignclass.readme} for more information.</echo> 
    37       </else> 
    38     </if> 
    39     <echo/> 
    40     <echo/> 
    41     <!-- JSON-RPC --> 
    42     <echo>-------------------------------------------</echo> 
    43     <echo>| Setting up JSON-RPC example             |</echo> 
    44     <echo>-------------------------------------------</echo> 
    45     <mkdir dir="${examples.base.dir}/javascript"/> 
    46     <copy todir="${examples.base.dir}/javascript"> 
    47       <fileset dir="${project.basedir}/src/main/javascript"> 
    48         <include name="**/*.js"/> 
    49       </fileset> 
    50     </copy> 
    51     <available file="${examples.absolute.dir}/yui" type="dir" property="yui.local.available"/> 
    52     <if> 
    53       <isset property="yui.local.use"/> 
    54       <!-- use local version --> 
    55       <then> 
    56         <if> 
    57           <equals arg1="${yui.local.use}" arg2="yes"/> 
    58           <then> 
    59             <if> 
    60               <equals arg1="${yui.local.available}" arg2="yes"/> 
    61               <then> 
    62                 <echo>YAHOO! User Interface library is installed.</echo> 
    63               </then> 
    64               <else> 
    65                 <echo level="error">[Error] YAHOO! User Interface library is *not* installed.</echo> 
    66                 <echo level="error"/> 
    67                 <echo level="error">Set the property "yui.local.use" in "build.properties" to "no" to use the online version.</echo> 
    68                 <echo level="error"/> 
    69                 <echo level="error">Or download the latest version of the YAHOO! User Interface library from http://developer.yahoo.com/yui</echo> 
    70                 <echo level="error">and place it into ${examples.absolute.dir}/yui.</echo> 
    71                 <echo level="error">For more information refer to ${examples.absolute.dir}/json-rpc/README.</echo> 
    72               </else> 
    73             </if> 
    74           </then> 
    75           <else> 
    76             <echo>Using online version of the YAHOO! User Interface library, please make sure, you are connected to the Internet.</echo> 
    77           </else> 
    78         </if> 
    79       </then> 
    80       <else> 
    81         <if> 
    82           <equals arg1="${yui.local.available}" arg2="yes"/> 
    83           <then> 
    84             <echo>YAHOO! User Interface library is installed.</echo> 
    85             <echo>Will use this version in examples.</echo> 
    86             <append destFile="build.properties" text="yui.local.use=yes${line.separator}"/> 
    87           </then> 
    88           <else> 
    89             <echo>YAHOO! User Interface library is *not* installed.</echo> 
    90             <input propertyname="yui.remote.use" promptChar="?">Do you want to use the online version provided by YAHOO (Y/N)</input> 
    91             <if> 
    92               <equals arg1="${yui.remote.use}" arg2="Y"/> 
    93               <then> 
    94                 <append destFile="build.properties" text="yui.local.use=no${line.separator}"/> 
    95               </then> 
    96               <else> 
    97                 <append destFile="build.properties" text="yui.local.use=yes${line.separator}"/> 
    98               </else> 
    99             </if> 
    100           </else> 
    101         </if> 
    102       </else> 
    103     </if> 
     22    <phing phingfile="${project.basedir}/examples/build.xml" inheritAll="false" /> 
    10423  </target> 
    10524 
  • trunk/examples

    • Property svn:ignore changed from
      yui
      to
      yui
      javascript