Hi Christiano,

JaCoCo's prepare agent goal can set any property with the agent configuration:

  http://eclemma.org/jacoco/trunk/doc/prepare-agent-mojo.html

With this property you can configure the command line for java execution.

Regards,
-marc



On 2015-09-28 22:55, Cristiano Costantini wrote:
Hello all,
is it possible to perform coverage of a static void main(String[]
args) and generate an XML or HTML report directly from the maven
plugin?

I'm able to launch from Eclipse a generic java application with
"Coverage as...", I've also been able to launch from the command line
the -javaagent, and I've used the generated jacoco.exec in plugin, and
from these two sessions I can generate the XML or HTML report.

But I would like to automate the generation of the coverage report
with my maven build:
as far as I've seen, there is only documentation for performing the
analysis during junit tests (suerefire plugin) or integration tests
(failsafe plugin).

Ideally, I would like launch the command "mvn exec:java ..." and I
want to collect the coverage report of this execution.
What am I missing?

Thank you very much!
Cristiano

 --
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jacoco/89fbda2b-f6e5-41b5-ae0d-9b970fffdbe9%40googlegroups.com
[1].
For more options, visit https://groups.google.com/d/optout [2].


Links:
------
[1]
https://groups.google.com/d/msgid/jacoco/89fbda2b-f6e5-41b5-ae0d-9b970fffdbe9%40googlegroups.com?utm_medium=email&utm_source=footer
[2] https://groups.google.com/d/optout

--
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/36aa3331db765c82b9ffef35ed451369%40mountainminds.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to