Changeset 1627

Show
Ignore:
Timestamp:
06/17/08 14:57:16 (5 months ago)
Author:
richi
Message:

codeSniffer: fixed bug (PHP_CodeSniffer doesn't work with a relative path to a coding standard)

Files:

Legend:

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

    r1564 r1627  
    403403    <echo>| Checking CS of source files    |</echo> 
    404404    <echo>----------------------------------</echo> 
     405    <php expression="realpath('.')" returnProperty="stubbles.base.dir.absolute"/> 
    405406    <if> 
    406407      <or> 
     
    410411      <then> 
    411412        <!-- normal slashes --> 
    412         <exec command="phpcs --standard=${stubbles.base.dir}/src/main/php/org/stubbles/codeSniffer/Stubbles ${stubbles.base.dir}/src/${check-style.path}/php/net/stubbles/${check-style.namespace}" passthru="true"/> 
     413        <exec command="phpcs --standard=${stubbles.base.dir.absolute}/src/main/php/org/stubbles/codeSniffer/Stubbles ${stubbles.base.dir}/src/${check-style.path}/php/net/stubbles/${check-style.namespace}" passthru="true"/> 
    413414      </then> 
    414415      <elseif> 
     
    416417        <then> 
    417418          <!-- must be backslashes in first case or PHP_CodeSniffer doesn't find own sniffs --> 
    418           <exec command="phpcs --standard=${stubbles.base.dir}\src\main\php\org\stubbles\codeSniffer\Stubbles ${stubbles.base.dir}/src/${check-style.path}/php/net/stubbles/${check-style.namespace}" passthru="true"/> 
     419          <exec command="phpcs --standard=${stubbles.base.dir.absolute}\src\main\php\org\stubbles\codeSniffer\Stubbles ${stubbles.base.dir}/src/${check-style.path}/php/net/stubbles/${check-style.namespace}" passthru="true"/> 
    419420        </then> 
    420421      </elseif>