We were using cobertura for code coverage but because of some issues we are planning to move to jacoco.
We have used cobertura jar in bash file and provided the application jar which needs to be instrumented and was executing that bash file while starting up application .
<JAVA> -cp "<cobertura-jar>" -Dnet.sourceforge.cobertura.datafile="<cobertura-data-file>" net.sourceforge.cobertura.instrument.InstrumentMain <app-jar>
I wanted to know can we do something similar with Jacoco.
I haven't found any info till now .Please let me know if we can do something like this