Hi Marc,
the examples that ship with JaCoCo and are linked with from
documentation use properties and do work:
http://www.jacoco.org/jacoco/trunk/doc/
To analyze your problem we need a executable minimal reproducer (e.g.
github project). A good starting point would be our example:
http://www.jacoco.org/jacoco/trunk/doc/examples/build/build.xml
Regards,
-marc
On 2018-02-12 17:54, [email protected] wrote:
Hi
1) It looks to me that ant properties are not expanded in the
jacoco:agent task, as in:
<jacoco:agent property="jacocoagentvmparam"
enabled=${dojacoco}
destfile=${execfile}
classdumpdir=${dumpdir}
append="true" />
Am I wrong ?
2) I would like to have in my build file a default full target
(chaining many generations/compilations/executions) not doing code
coverage and a similar target doing code coverage.
The <coverage> wrapper does not work on targets.
I'd like not duplicate all java targets to have them wrapped and not
wrapped by coverage or set and not set with the agent parameters,
like:
<target name="run_tpt">
<java failonerror="true"
fork="true"
classname=...
classpath=...>
</java>
</target>
<target name="run_tpt_cc">
<java failonerror="true"
fork="true"
classname=...
classpath=...>
<!-- jacocoagent vm arguments -->
<jvmarg value="${jacocoagentvmparam}" />
</java>
</target>
Is there a simple way to do this ?
Thanks in advance.
--
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/d3ac7f1805f21e473e367a7a99c0d1aa%40mountainminds.com.
For more options, visit https://groups.google.com/d/optout.