Changeset 1310

Show
Ignore:
Timestamp:
01/29/08 11:36:42 (6 months ago)
Author:
richi
Message:

enhancement #48: added phing property for switching check-style between framework and test classes

Files:

Legend:

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

    r1308 r1310  
    257257    <echo>| Checking CS of source files    |</echo> 
    258258    <echo>----------------------------------</echo> 
     259    <property name="check.path" value="main"/> 
     260    <echo message="currently 'check.path' is set to '${check.path}'"/> 
    259261    <input propertyname="namespace" promptChar=":">which stubbles namespace should be checked</input> 
    260262    <if> 
     
    265267      <then> 
    266268        <!-- normal slashes --> 
    267         <exec command="phpcs --standard=${stubbles.base.dir}/src/main/php/org/stubbles/codeSniffer/Stubbles ${stubbles.base.dir}/src/main/php/net/stubbles/${namespace}" passthru="true"/> 
     269        <exec command="phpcs --standard=${stubbles.base.dir}/src/main/php/org/stubbles/codeSniffer/Stubbles ${stubbles.base.dir}/src/${check.path}/php/net/stubbles/${namespace}" passthru="true"/> 
    268270      </then> 
    269271      <elseif> 
     
    271273        <then> 
    272274          <!-- must be backslashes in first case or PHP_CodeSniffer doesn't find own sniffs --> 
    273           <exec command="phpcs --standard=${stubbles.base.dir}\src\main\php\org\stubbles\codeSniffer\Stubbles ${stubbles.base.dir}/src/main/php/net/stubbles/${namespace}" passthru="true"/> 
     275          <exec command="phpcs --standard=${stubbles.base.dir}\src\main\php\org\stubbles\codeSniffer\Stubbles ${stubbles.base.dir}/src/${check.path}/php/net/stubbles/${namespace}" passthru="true"/> 
    274276        </then> 
    275277      </elseif>