SourceForge has been redesigned. Learn more.

Ant task "jacoco:coverage" bug

David W.
  • David W.

    David W. - 2012-08-21

    I've just run into a slight bug in the Ant jacoco:coverage task. If I am using a "junit" task as part of the "jacoco:coverage" task, it won't take a value for "fork" other than the literal string "true". If I use a property that's set to "true", it gives me this error:

    D:\workdir\local-tc-common-all\build.xml:158: The following error occurred while executing this line:
    D:\workdir\local-tc-common-all\ivy.dir\ivy.tasks.xml:116: Coverage can only be applied on a forked VM

    I've verified this on Stackoverflow, here's a link to the bug:

    I've would have put this issue directly into your bug tracker, but couldn't find that.

  • Marc R. Hoffmann

    Fixed on trunk. Please re-test with the latest trunk build.