Changeset 1280

Show
Ignore:
Timestamp:
01/22/08 16:36:29 (7 months ago)
Author:
richi
Message:

enhancement #48: renaming coding standards dir and made check-style target cross-platform compatible (unix, mac, windows)

Files:

Legend:

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

    r1261 r1280  
    267267    <echo>----------------------------------</echo> 
    268268    <input propertyname="namespace" promptChar=":">which stubbles namespace should be checked</input> 
    269     <!-- must be backslashes in first case or PHP_CodeSniffer doesn't find own sniffs --> 
    270     <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    <if> 
     270      <or> 
     271        <os family="mac"/> 
     272        <os family="unix"/> 
     273      </or> 
     274      <then> 
     275        <!-- normal slashes --> 
     276        <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"/> 
     277      </then> 
     278      <elseif> 
     279        <os family="windows"/> 
     280        <then> 
     281          <!-- must be backslashes in first case or PHP_CodeSniffer doesn't find own sniffs --> 
     282          <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"/> 
     283        </then> 
     284      </elseif> 
     285    </if> 
    271286  </target> 
    272287