On Monday, November 5, 2018 at 4:35:00 PM UTC+1, John A wrote: > > Yes I saw that too. >
> And the Merge command has the ability to copy from one exec to another. > Sorry, but then what is exactly not clear about API for you? > It would be ideal to add a new arg --exclude to this command that takes a > regex or glob and excludes any matching package names. That way as the > final merged .exec file is being created, it simply strips out those > packages from *all* the incoming exec files and so the final outgoing file > is clean. > If you are trying to interest others by this, then IMO you should elaborate(explain) more about why(when) this is(can be) useful for others? Are you trying to exclude classes from report? Note that zeros will be shown in a report that is generated for classes not presented in execution data - this is equivalent to the case when class was not executed at all. > Note if you only name one incoming exec file then this is equivalent to > the "strip" command, i.e. I get two for one. > In addition to unclear goal, mix of "strip" on two, "merge" and "exclude" IMO look misleading and error-prone in use. In any case I believe that you can do all of these operations using API after careful reading of javadocs and examples. Regards, Evgeny > > John > > > On Saturday, November 3, 2018 at 11:25:32 AM UTC-7, Evgeny Mandrikov wrote: >> >> >> https://www.jacoco.org/jacoco/trunk/doc/examples/java/ExecDump.java >> <https://www.google.com/url?q=https%3A%2F%2Fwww.jacoco.org%2Fjacoco%2Ftrunk%2Fdoc%2Fexamples%2Fjava%2FExecDump.java&sa=D&sntz=1&usg=AFQjCNGXrGontjTgsiTUomI-MAl9MtiP2g> >> shows how to read execution data >> JavaDoc of API - >> https://www.jacoco.org/jacoco/trunk/doc/api/org/jacoco/core/data/package-summary.html >> >> <https://www.google.com/url?q=https%3A%2F%2Fwww.jacoco.org%2Fjacoco%2Ftrunk%2Fdoc%2Fapi%2Forg%2Fjacoco%2Fcore%2Fdata%2Fpackage-summary.html&sa=D&sntz=1&usg=AFQjCNFT2d32w9Z2-gftI-hFTfELFmBxaQ> >> >> >> >>> >>> Some sample code will make the ramp up time much quicker. >>> >>> TIA! >>> >>> John >>> >> -- 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/97a6301c-04ac-43ef-a8d5-c71035df568f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
