Changeset 1142

Show
Ignore:
Timestamp:
12/13/07 18:32:57 (10 months ago)
Author:
mikey
Message:

check-style should call target in specialized build file

Files:

Legend:

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

    r1133 r1142  
    6565  <!-- deprecated --> 
    6666  <target name="check-style" description="check coding standards"> 
    67     <echo>----------------------------------</echo> 
    68     <echo>| Checking CS of source files    |</echo> 
    69     <echo>----------------------------------</echo> 
    70     <checkStyle failonerror="true"> 
    71       <fileset dir="${stubbles.base.dir}/src/main/php"> 
    72         <include name="**/*.php" /> 
    73         <exclude name="**/org/simpletest/**" /> 
    74       </fileset> 
    75       <fileset dir="${stubbles.base.dir}/src/test/php"> 
    76         <include name="**/*.php" /> 
    77       </fileset> 
    78       <fileset dir="${stubbles.base.dir}/examples"> 
    79         <include name="**/*.php" /> 
    80         <exclude name="yui/**" /> 
    81       </fileset> 
    82     </checkStyle> 
     67    <if> 
     68      <isset property="package" /> 
     69      <then> 
     70        <phing phingfile="${build.base.dir}/${package}/build.xml" target="check-style" /> 
     71      </then> 
     72      <else> 
     73        <phing phingfile="${build.base.dir}/stubbles/build.xml" target="check-style" /> 
     74      </else> 
     75    </if> 
    8376  </target> 
    8477