You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Dominique Devienne <DD...@lgc.com> on 2004/05/18 23:23:45 UTC

[OT] JavaNCSS

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


Re: [OT] JavaNCSS

Posted by Dale Anson <da...@germane-software.com>.
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