> Can I still use that dump task?
Yes you can. As *documentation*
(
http://www.eclemma.org/jacoco/trunk/doc/offline.html) says:
"In offline mode the JaCoCo runtime can be configured with the same
set of properties which are available for the agent"
See agent configuration options here:
http://www.eclemma.org/jacoco/trunk/doc/agent.html
So if you define a System property jacoco-agent.output=tcpserver you
can request remote dumps.
> The error message is : Error while creating report when I create the
> report with the <jacoco:report>
There should be some more lines below this message with the exception
causing the problem.
Regards,
-marc
On 2013-07-22 22:28, Limou Wang wrote:
> Hi Marc,
>
> Thank you for your reply.
>
> Since I'm not allowed to attach the Jacoco agent to the JVM. Can I
> still use that dump task?
>
> The error message is : Error while creating report when I create the
> report with the <jacoco:report>
>
> On Monday, July 22, 2013 1:10:46 PM UTC-7, Marc R. Hoffmann wrote:
>
>> Hi,
>>
>> > However, since it's a live JVM, how could I
>> > stop it to get the correct execution data coverage.
>>
>> no need to stop the JVM. JaCoCo supports remote dumps. See how you
>> configure JaCoCo when classes are instrumented offline:
>>
>>
http://www.eclemma.org/jacoco/trunk/doc/offline.html [1]
>>
>> There's an Ant task to request dumps:
>>
>>
http://www.eclemma.org/jacoco/trunk/doc/ant.html#dump [2]
>>
>> > Right now, I manually stopped the jvm and when I try to generate
>> > report using jacoco.exec, it reports error while creating the
>> report.
>>
>> What is the exact error message?
>>
>> Regards,
>> -marc
>>
>> On 22.07.13 21:54, Limou Wang wrote:
>>> I was trying to do the live code coverage on a distributed system.
>> I
>>> could not attach the jacoco agent to the JVM. I'm instrumenting
>> the
>>> binary before deploying. However, since it's a live JVM, how could
>> I
>>> stop it to get the correct execution data coverage. Right now, I
>>> manually stopped the jvm and when I try to generate report using
>>> jacoco.exec, it reports error while creating the report. Any help
>> will
>>> be really appreciate.
>
> --
> You received this message because you are subscribed to the Google
> Groups "JaCoCo and EclEmma Users" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to
jacoco+un...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out
> [3].
>
>
>
> Links:
> ------
> [1]
http://www.eclemma.org/jacoco/trunk/doc/offline.html
> [2]
http://www.eclemma.org/jacoco/trunk/doc/ant.html#dump
> [3]
https://groups.google.com/groups/opt_out