Changeset 1564 for trunk/build.xml

Show
Ignore:
Timestamp:
04/28/08 10:44:02 (2 months ago)
Author:
richi
Message:

check-style: added support for running check-style without user interaction (via -Dcheck-style.namespace= -Dcheck-style.path=main)

Files:

Legend:

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

    r1397 r1564  
    7676  </target> 
    7777 
    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)"/> 
    7989    <phing phingfile="${build.base.dir}/stubbles/build.xml" target="check-style" /> 
    8090  </target>