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" />
      </fileset>
    </cobertura:cobertura-instrument>

The output I get though is this:
[cobertura:cobertura-instrument] Cobertura 1.9.1 - GNU GPL License (NO
WARRANTY) - See COPYRIGHT file
[cobertura:cobertura-instrument] Instrumenting 5 files to
C:\...\dist\instrumented
[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
files.

Reply via email to