On Friday, November 2, 2018 at 7:30:42 PM UTC+1, John A wrote:
>
> Is there some sample code that uses the JaCoCo API to copy an exec from 
> one file to another?
>
> I'd like to use this as a starting to create a filtering mechanism.
>
>       java -jar mycool.jar strip oldfile.ec newfile.ec  'android.*' 
> 'com.facebook.*'   'com.some.package.name'
>
>
> Here's some pseudo code:
>
>    - create an empty output file
>    - read exec file, package by package
>       - if a particular package is in an exclude list, skip
>       - otherwise write the package to the output file
>    
>
> At the end of it, the new output file will be usable to generate a report 
> using the normal existing command line.
>
> I'm starting to look through the API Usage Examples 
> https://www.jacoco.org/jacoco/trunk/doc/api.html but so far nothing jumps 
> out...
>

https://www.jacoco.org/jacoco/trunk/doc/examples/java/ExecDump.java
shows how to read execution data
JavaDoc of API - 
https://www.jacoco.org/jacoco/trunk/doc/api/org/jacoco/core/data/package-summary.html

 

>
> 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/62b0b7cc-fbb2-4743-a983-fc7e82bffe40%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to