Unable to read execution data file (jacoco-using ant tasks)

238 views
Skip to first unread message

ashlisimo...@gmail.com

unread,
Sep 8, 2016, 6:59:07 AM9/8/16
to JaCoCo and EclEmma Users
Hi,
I'm trying to use jacoco with ant tasks.But while executing the ant command, it is not loading the jacoco.exec file. The result is :


Buildfile: \build.xml

****************************************************************************

!+! STARTED @ Thu Sep 08 16:09:50 IST 2016
****************************************************************************
----------------------------------------------------------------------------

!+! ENTERING code-coverage[\build.xml]
----------------------------------------------------------------------------

Build sequence for target(s) `jacoco.report' is [jacoco.report]

jacoco.report:[jacoco:report] Loading execution data file D:\${exec.path}!+! ERROR OCCURRED @ \build.xml:52: !!!
***************************************************************************

!+! FINISHED @ Thu Sep 08 16:09:50 IST 2016
!+! Log: buildlogs\0041code_coverage.log
****************************************************************************
BUILD FAILED
\build.xml:52: Unable to read execution data file ${exec.path}

Total time: 0 seconds

Marc R. Hoffmann

unread,
Sep 8, 2016, 11:55:20 PM9/8/16
to jac...@googlegroups.com
Well, have a look at the build output:

Loading execution data file D:\${exec.path}


Looks like your variable exec.path is not defined,

Regards,
-marc
--
Marc Hoffmann
hoff...@mountainminds.com
_______________________________________________
Mountainminds GmbH & Co. KG

Nussbaumstr. 4 * 80336 Muenchen * Germany
Phone/Fax +49-700-68664637 * 0700-MTNMINDS

Registergericht Muenchen * HRA 80201
Mountainminds Verwaltungs GmbH
Registergericht Muenchen * HRB 143183
Geschaeftsfuehrer Marc Hoffmann

Ashley S

unread,
Sep 13, 2016, 12:00:41 AM9/13/16
to jac...@googlegroups.com
Hi,
Thanks a lot for the reply. I'm new to jacoco.
Can you please tell me when is the jacoco.exec file generated ? The ${exec.path} is defined, but I guess the error is because the jacoco.exec file is not found.

Thanks and Regards,
Ashli
 



--
You received this message because you are subscribed to a topic in the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jacoco/vXKY0DpEZDE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jacoco+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/4f17c91f-e77d-5741-68c8-476d12ee9ede%40mountainminds.com.
For more options, visit https://groups.google.com/d/optout.

Marc Hoffmann

unread,
Sep 13, 2016, 7:55:31 AM9/13/16
to jac...@googlegroups.com
According to the error message "D:\${exec.path}" I'm pretty sure
*exec.path* is not defined when the report task is executed.

This is not an JaCoCo isse, you need to configure your builds scripts
correctly.

jacoco.exec is normally generated by the JaCoCo agent, which is
configured with the jacoco:coverage task.

Regards,
-marc
>> You received this message because you are subscribed to a topic in
>> the Google Groups "JaCoCo and EclEmma Users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/jacoco/vXKY0DpEZDE/unsubscribe
>> [1].
>> To unsubscribe from this group and all its topics, send an email to
>> jacoco+un...@googlegroups.com.
>> [2].
>> For more options, visit https://groups.google.com/d/optout [3].
>
> --
> 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 jacoco+un...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jacoco/CANYp0_%3DPhvMXtUUxQGZ7EAr29VVVUjYCwv99bq5Afih%2B%3Db5f3A%40mail.gmail.com
> [4].
> For more options, visit https://groups.google.com/d/optout.
>
>
> Links:
> ------
> [1] https://groups.google.com/d/topic/jacoco/vXKY0DpEZDE/unsubscribe
> [2]
> https://groups.google.com/d/msgid/jacoco/4f17c91f-e77d-5741-68c8-476d12ee9ede%40mountainminds.com
> [3] https://groups.google.com/d/optout
> [4]
> https://groups.google.com/d/msgid/jacoco/CANYp0_%3DPhvMXtUUxQGZ7EAr29VVVUjYCwv99bq5Afih%2B%3Db5f3A%40mail.gmail.com?utm_medium=email&utm_source=footer

Ashley S

unread,
Sep 13, 2016, 8:01:59 AM9/13/16
to jac...@googlegroups.com
Hi,
Thank you.Will check again.

-Ashli


To view this discussion on the web visit

https://groups.google.com/d/msgid/jacoco/4f17c91f-e77d-5741-68c8-476d12ee9ede%40mountainminds.com
[2].
For more options, visit https://groups.google.com/d/optout [3].

 --
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

To view this discussion on the web visit
--
You received this message because you are subscribed to a topic in the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jacoco/vXKY0DpEZDE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jacoco+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/9b835d43e8d3aa2f3e5aeec64e87cfce%40mountainminds.com.
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages