Getting Started: Adding an Ant Task

Comet currently supports JDK 1.4, 5 and 6. To install the CoView JAR file, download the Jar file . A license file is required, and you can get it from here.

Ant Task Example
<path id="carrentalclasspathid"/>
         <pathelement location="/Users/jponczak/comet/comet.jar"/>
     </path>
	 <target name="comet" description="Run Comet" depends="">
	 <echo message="hello comet"/>
        <taskdef name="comet" classname="com.codign.comet.Comet" 
         classpathref="cometclasspathid" /> <comet stoponerror="true"
         errorsonly="false"
         source="1.5"
         html="true"
         output="report.html"
         license="/Users/jponczak/licenses/comet.lic"
         dir="/Users/jponczak/comet/workspace/BogusCalc/src"
         classpathref="cometclasspathid"> <include name="**/*.java" /> <exclude name="**/*est*.java" /> <threshold name="staticinvocations" value="2" severity="warning"/> </comet>