Hi,
The fileset refers to a directory containing JARs, right? So the
excludesfile can only filter those JAR files, not class files. To make
this work you would probably unzip the JARs first and then filter on
those class files.
Alternatively you might use the zipfile data type which will then allow
to filter on the JAR's content.
Note that this is all pure Ant: JaCoCo simply takes any fileset and
processes all class files or JARs provided.
Best regards,
-marc
On 08.07.14 22:21, [email protected] wrote:
I added the following in my build.xml :
<fileset id="a" dir="ABC">
<include name="A123.jar"/>
<include name="A456.jar"/>
</fileset>
<fileset id="b" dir="DEF">
<include name="D123.jar"/>
</fileset>
<fileset id="c" dir="GHI">
<include name="G123.jar"/>
</fileset>
for exclude i have added :
<fileset id="exclude" dir=".">
<excludesfile name="jacoco_class_filter.txt"/>
</fileset>
and in report task :
<jacoco:report ..
<structure name="code coverage">
<group name="codecov 1">
<classfiles>
<fileset refid="a"/>
<fileset refid="exclude"/>
</classfiles>
</group>
...
Which is not working. lines in exclude file are in format :
**/a/b/c/*.class
**/d/e/f/*.class
**/g/h/i/*.class
and so on.
On Tuesday, 8 July 2014 13:16:06 UTC-7, [email protected] wrote:
Ant
On Tuesday, 8 July 2014 13:15:14 UTC-7, Marc R. Hoffmann wrote:
What build system are you using? Ant? Maven?
-marc
On 08.07.14 22:09, [email protected] wrote:
Hi Marc,
I have a query on filtering options.I have a bunch of class files to be
excluded and they are in a file(say filter.txt). How can i use this in
generating the report?
I tried using <excludesfile name="filter.txt" .../> but this doesn't seem to
work. I had to put each class separately in exclude task :
<exclude name="**/a/b/c/*.class"/>
.
.
.
.
<exclude name="**/x/y/z/*.class"/>
Please let me know if theres any option to exclude classes reading from file
and what should be the syntax of filter file.
Many Thanks,
On Thursday, 14 November 2013 14:03:16 UTC-8, Marc R. Hoffmann wrote:
Hi Obi,
we have a long list of requirements and ideas for all kind filtering
options:
https://github.com/jacoco/jacoco/wiki/FilteringOptions
Unfortunatelly there is no near future plan.
Best regards,
-marc
On 14.11.13 07:02, [email protected] wrote:
Hi Marc
Is there any plan in near future of incorporating filtering feature in
jacoco-maven plugin ?
Regards
obi
--
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].
For more options, visit https://groups.google.com/d/optout.