Changeset 1564 for trunk/build
- Timestamp:
- 04/28/08 10:44:02 (4 months ago)
- Files:
-
- trunk/build/stubbles/build.xml (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/build/stubbles/build.xml
r1550 r1564 399 399 </target> 400 400 401 <target name="check-style" description="check coding standards with PHP_CodeSniffer" >401 <target name="check-style" description="check coding standards with PHP_CodeSniffer" if="check-style.path,check-style.namespace"> 402 402 <echo>----------------------------------</echo> 403 403 <echo>| Checking CS of source files |</echo> 404 404 <echo>----------------------------------</echo> 405 <property name="check.path" value="main"/>406 <echo message="currently 'check.path' is set to '${check.path}'"/>407 <input propertyname="namespace" promptChar=":">which stubbles namespace should be checked</input>408 405 <if> 409 406 <or> … … 413 410 <then> 414 411 <!-- normal slashes --> 415 <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"/>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"/> 416 413 </then> 417 414 <elseif> … … 419 416 <then> 420 417 <!-- must be backslashes in first case or PHP_CodeSniffer doesn't find own sniffs --> 421 <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"/>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"/> 422 419 </then> 423 420 </elseif>
