Re: [java code coverage] Maven plugin prepare-agent does not generate ${destFile} when Surefire forkMode=never

2014-04-14 Thread Marc R. Hoffmann
Hi, thanks for this report! In fact the JaCoCo agent can only be installed to a forked jvm. If now JaCoCo agent is installed no execution data is recorded and written to the *.exec file. Not sure how we can fix this in JaCoCo beside adding documentation to the prepare-agent goal? JaCoCo

Re: [java code coverage] Maven plugin prepare-agent does not generate ${destFile} when Surefire forkMode=never

2014-04-14 Thread Mirko Friedenhagen
Hello Marc, I could try to detect the surefire setting, though I have no clue whether this is a trivial task. Documenting the behavior is a simple workaround. Regards Mirko -- Sent from my mobile On Apr 14, 2014 8:30 PM, Marc R. Hoffmann hoffm...@mountainminds.com wrote: Hi, thanks for this

Re: [java code coverage] Maven plugin prepare-agent does not generate ${destFile} when Surefire forkMode=never

2014-04-14 Thread Marc R. Hoffmann
Hi Mirko, I'm scared about the side effects if we start interfering with surefire. Also the prepare-agent goal can be used for any other tool which executes a jvm. Cheers, -marc On 14.04.14 21:10, Mirko Friedenhagen wrote: Hello Marc, I could try to detect the surefire setting, though I