Changeset 1564
- Timestamp:
- 04/28/08 10:44:02 (3 weeks ago)
- Files:
-
- trunk/build.xml (modified) (1 diff)
- trunk/build/stubbles/build.xml (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/build.xml
r1397 r1564 76 76 </target> 77 77 78 <target name="check-style" description="check coding standards"> 78 <target name="checkstyle-pathcheck" unless="check-style.path"> 79 <input propertyname="check-style.path" defaultValue="main" validArgs="main,test" promptChar=":">which check path should be used</input> 80 </target> 81 82 <target name="checkstyle-namespacecheck" unless="check-style.namespace"> 83 <input propertyname="check-style.namespace" defaultValue="" promptChar=":">which stubbles namespace should be checked</input> 84 </target> 85 86 <target name="check-style" description="check coding standards" depends="checkstyle-pathcheck,checkstyle-namespacecheck"> 87 <echo message="'check-style.path' is set to '${check-style.path}'"/> 88 <echo message="'check-style.namespace' is set to '${check-style.namespace}' ('' = all)"/> 79 89 <phing phingfile="${build.base.dir}/stubbles/build.xml" target="check-style" /> 80 90 </target> 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>
