ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mitch Gitman <>
Subject cobertura-instrument--anyone seen this?
Date Tue, 12 May 2009 18:31:10 GMT
I'm not sure there's a better forum for this question. I'm invoking
the *cobertura-instrument
*Ant task for instrumenting classes for Cobertura code coverage. Very
simplistic implementation:
    <cobertura:cobertura-instrument todir="${instrumented.classes.dir}">
      <ignore regex="org.apache.log4j.*" />
      <fileset dir="${main.classes.dir}">
        <include name="**/*.class" />

The output I get though is this:
[cobertura:cobertura-instrument] Cobertura 1.9.1 - GNU GPL License (NO
[cobertura:cobertura-instrument] Instrumenting 5 files to
[cobertura:cobertura-instrument] Cobertura: *Saved information on 0 classes.
[cobertura:cobertura-instrument] Instrument time: 50ms

The *cobertura-instrument *task did find five files to instrument but it
ends up saving information on 0 classes. Sure enough, if I look in the
directory indicated by the instrumented.classes.dir property, it's empty.

Anyone know why *cobertura-instrument *is missing my .class files? And when
I run it in -verbose mode, it does say it's adding the expected .class

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message