Do you have an example of how to accomplish this task in maven?

On Wednesday, September 19, 2012 8:54:10 AM UTC-7, Marc R. Hoffmann wrote:
> JaCoCo works fine for anonymous classes. The problem is that the file
> 
>    com/comp/data/MyDataModel$1.class
> 
> exists twice in your class path.
> 
> What you need to do is search your classpath, identify duplicates and 
> eliminate them.
> 
> Cheers,
> -marc
> 
> On 2012-09-19 15:01, Yaroslav Chinskiy wrote:
> > In this case, it fails with anonymous class which I have a lot
> > (unfortunately)
> > I tried add these classes to exclude list but no luck...
> >
> > Anything else i can try?
> >
> > thank you.
> >
> > On Tuesday, September 18, 2012 5:17:05 PM UTC-4, Yaroslav Chinskiy
> > wrote:
> >
> >> Hi,
> >>
> >> I am switching my F/E application from emma to JaCoCo and need some
> >> guidance. With emma we produced instrumented build that would go to
> >> QA and later produce code coverage based on the manual/automated
> >> test.
> >>
> >> I tried to run the same app with jacocoagent but now I can not
> >> generate a report.
> >> i am using report target that keeps failing with "Can't add
> >> different class with same name: com/comp/data/MyDataModel$1"
> >>
> >> I tried to exclude it <exclude name="**/*MyDataModel$1*"/> but no
> >> luck
> >>
> >> For classfiles, I include all jar files from the class path.
> >>
> >> What am I doing wrong?
> >
> >  --

-- 
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/29adb786-5d58-4fc5-a36d-a2eae86ccf86%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to