ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dale Anson <dan...@germane-software.com>
Subject Re: [OT] JavaNCSS
Date Tue, 18 May 2004 22:09:13 GMT
I've been using jmetra from www.jmetra.com. It's not open source, but is 
free for open source and non-commercial projects. Below are the relevant 
sections from a build file that uses it. This took less than an hour to 
set up with an AntHill build.

    <!-- definitions for jmetra -->
    <property name="jmetra.home" location="${user.home}/apps/jmetra"/>
    <path id="jmetra.cp">
       <fileset dir="${jmetra.home}/lib">
          <include name="*.jar"/>
       </fileset>
    </path>
    <taskdef name="jmetrametrics" 
classname="com.jmetra.tools.ant.JMetraMetricsTaskDef">
       <classpath refid="jmetra.cp"/>
    </taskdef>
    <taskdef name="jmetrametricsaggr" 
classname="com.jmetra.tools.ant.JMetraMetricsAggrTaskDef">
       <classpath refid="jmetra.cp"/>
    </taskdef>
    <taskdef name="jmetradoc" 
classname="com.jmetra.tools.ant.JMetraDocTaskDef">
       <classpath refid="jmetra.cp"/>
    </taskdef>
    <property name="jmetra.outdir" 
location="${anthill.home}/publishDir/${app.name}/metrics/"/>

    <target name="metrics">
       <jmetrametrics verbose="true"
             rootsource="${basedir}"
             sourcekeyword="com"
             outputdir="${jmetra.outdir}/metrics"/>

       <jmetrametricsaggr verbose="true"
             metricsdir="${jmetra.outdir}/metrics"
             outputdir="${jmetra.outdir}/aggr"
             recent="10"/>

       <jmetradoc verbose="true"
             aggrmetricsdir="${jmetra.outdir}/aggr"
             outputdir="${jmetra.outdir}/docs"
             css="${jmetra.outdir}/jmstyle.css"/>
    </target>

HTH,

Dale


Dominique Devienne wrote:

> Does anyone know where I could get the JAR/sources for JavaNCSS, the Java
> metric library? The URL http://www.kclee.com/clemens/java/javancss/ has been
> broken for me for a few days now. Thanks for any info.
> 
> Alternatively, anyone knows of another good (and simple) Java metrics
> library? (beside JDepend).
> 
> Thanks, --DD
> 
> PS: JavaNCSS is referenced in the Ant Wiki, Maven, etc...
>     but no luck getting it.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message