Hi,
decompile the classes and you will see the problem:
javap.exe -v cep_commonVersion.class
...
SourceFile: "cep_commonVersion.java"
javap.exe -v cep_baseVersion.class
...
SourceFile: "SourceFile"
The SourceFile attribute for the latter class is obviously wrong. You
will need to find out how this class is generated or modified and fix it
there.
Regards,
-marc
On 2015-04-30 09:26, Serge Bagi wrote:
That's correct.
Here they are attached.
On Thu, Apr 30, 2015 at 12:11 AM, Marc Hoffmann
<[email protected]> wrote:
So both classes are listed in the report, but only one is linked to
its source. Right?
Could you provide both class files cep_baseVersion.class and
cep_commonVersion.class?
Regards,
-marc
On 2015-04-30 06:20, [email protected] wrote:
On Wednesday, April 29, 2015 at 6:52:37 PM UTC-7, [email protected]
wrote:
Hi,
for some reasons when I generate the report some of the highlighted
sources are present and some others are not.
I don't know how to debug further the missing highlighted sources:
- Line coverage is present so debug info is there
- I can decompile the .class so there is no obfuscation
- I specified source folders as the direct parent of the folders
that
define the Java packages (I think I got that right since I get
highlighted source for some of them)
- I ran Ant with -v -d but there is nothing unusual
Any idea of what to check next ? I'm blank now...
Here is the Ant script for only 2 classes.
One class has the source linked the other has not. I can't figure
out why...
<target name="report" depends="clean">
<jacoco:report>
<executiondata>
<file
file="${result.exec.file.final}" />
</executiondata>
<structure name="TIBCO BusinessEvents">
<group name="BE Standard Runtime">
<classfiles>
<fileset
dir="C:/temp/jacoco/classes" >
</fileset>
</classfiles>
<sourcefiles>
<fileset
dir="C:/temp/jacoco/tmp/src">
<include
name="com/tibco/cep/cep_baseVersion.java"/>
</fileset>
<fileset
dir="C:/temp/jacoco/tmp/src">
<include
name="com/tibco/cep/cep_commonVersion.java"/>
</fileset>
</sourcefiles>
</group>
</structure>
<html destdir="${result.report.dir}"
footer="Generated by TIBCO
Event Processing Team" />
</jacoco:report>
</target>
Here is the Ant output:
C:jacoco-0.7.2docexamplesbuild>c:apache-ant-1.9.4binant -lib
C:jacoco-0.7.2libjacocoant.jar -v -d -f build.xml report
Apache Ant(TM) version 1.9.4 compiled on April 29 2014
Buildfile: C:jacoco-0.7.2docexamplesbuildbuild.xml
Adding reference: ant.PropertyHelper
Detected Java version: 1.7 in: C:Program FilesJavajdk1.7.0_25jre
Detected OS: Windows 8
Adding reference: ant.ComponentHelper
Setting ro project property: ant.file ->
C:jacoco-0.7.2docexamplesbuildbuild.xml
Setting ro project property: ant.file.type -> file
Adding reference: ant.projectHelper
Adding reference: ant.parsing.context
Adding reference: ant.targets
parsing buildfile C:jacoco-0.7.2docexamplesbuildbuild.xml with
URI = file:/C:/jacoco-0.7.2/doc/examples/build/build.xml
Setting ro project property: ant.project.name [1] -> TIBCO
BusinessEvents
Adding reference: TIBCO BusinessEvents
Setting ro project property: ant.project.default-target -> report
Setting ro project property: ant.file.TIBCO BusinessEvents ->
C:jacoco-0.7.2docexamplesbuildbuild.xml
Setting ro project property: ant.file.type.TIBCO BusinessEvents ->
file
Project base dir set to: C:jacoco-0.7.2docexamplesbuild
+Target:
+Target: clean
+Target: merge
+Target: report
Adding reference: ant.LocalProperties
parsing buildfile
jar:file:/C:/apache-ant-1.9.4/lib/ant.jar!/org/apache/tools/ant/antlib.xml
with URI =
jar:file:/C:/apache-ant-1.9.4/lib/ant.jar!/org/apache/tools/ant/antlib.xml
from a zip file
Setting project property: tibco.home -> C:tibcobe520v467
Setting project property: jacoco.home -> C:jacoco-0.7.2
Setting project property: jacoco.work -> C:tempjacoco
Setting project property: src.dir -> C:svnbeDEV5.2
Setting project property: result.report.dir ->
C:tempjacocoreportsreports-be520-addons-ga
Setting project property: result.exec.file.final ->
C:tempjacocodatafinaljacoco-be520.exec
Setting project property: result.exec.file.collection ->
C:tempjacocodata
parsing buildfile
jar:file:/C:/jacoco-0.7.2/lib/jacocoant.jar!/org/jacoco/ant/antlib.xml
with URI =
jar:file:/C:/jacoco-0.7.2/lib/jacocoant.jar!/org/jacoco/ant/antlib.xml
from a zip file
Class org.jacoco.ant.CoverageTask loaded from parent loader
(parentFirst)
+Datatype antlib:org.jacoco.ant:coverage
org.jacoco.ant.CoverageTask
Class org.jacoco.ant.AgentTask loaded from parent loader
(parentFirst)
+Datatype antlib:org.jacoco.ant:agent org.jacoco.ant.AgentTask
Class org.jacoco.ant.ReportTask loaded from parent loader
(parentFirst)
+Datatype antlib:org.jacoco.ant:report org.jacoco.ant.ReportTask
Class org.jacoco.ant.MergeTask loaded from parent loader
(parentFirst)
+Datatype antlib:org.jacoco.ant:merge org.jacoco.ant.MergeTask
Class org.jacoco.ant.DumpTask loaded from parent loader
(parentFirst)
+Datatype antlib:org.jacoco.ant:dump org.jacoco.ant.DumpTask
Class org.jacoco.ant.InstrumentTask loaded from parent loader
(parentFirst)
+Datatype antlib:org.jacoco.ant:instrument
org.jacoco.ant.InstrumentTask
parsing buildfile
jar:file:/C:/jacoco-0.7.2/lib/jacocoant.jar!/org/jacoco/ant/antlib.xml
with URI =
jar:file:/C:/jacoco-0.7.2/lib/jacocoant.jar!/org/jacoco/ant/antlib.xml
from a zip file
Setting ro project property: ant.project.invoked-targets -> report
Attempting to create object of type
org.apache.tools.ant.helper.DefaultExecutor
Adding reference: ant.executor
Build sequence for target(s) `report' is [clean, report]
Complete build sequence is [clean, report, merge, ]
clean:
report:
parsing buildfile
jar:file:/C:/jacoco-0.7.2/lib/jacocoant.jar!/org/jacoco/ant/antlib.xml
with URI =
jar:file:/C:/jacoco-0.7.2/lib/jacocoant.jar!/org/jacoco/ant/antlib.xml
from a zip file
Class org.jacoco.ant.CoverageTask loaded from parent loader
(parentFirst)
Class org.jacoco.ant.AgentTask loaded from parent loader
(parentFirst)
Class org.jacoco.ant.ReportTask loaded from parent loader
(parentFirst)
Class org.jacoco.ant.MergeTask loaded from parent loader
(parentFirst)
Class org.jacoco.ant.DumpTask loaded from parent loader
(parentFirst)
Class org.jacoco.ant.InstrumentTask loaded from parent loader
(parentFirst)
[jacoco:report] Loading execution data file
C:tempjacocodatafinaljacoco-be520.exec
fileset: Setup scanner in dir C:tempjacococlasses with patternSet{
includes: [] excludes: [] }
[jacoco:report] Writing bundle 'BE Standard Runtime' with 2 classes
fileset: Setup scanner in dir C:tempjacocotmpsrc with patternSet{
includes: [com/tibco/cep/cep_baseVersion.java] excludes: [] }
fileset: Setup scanner in dir C:tempjacocotmpsrc with patternSet{
includes: [com/tibco/cep/cep_commonVersion.java] excludes: [] }
BUILD SUCCESSFUL
Total time: 2 seconds
--
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/CAJT7cy9ehbNhAMu70aeY-Awq14w1dZ0FG9fp8Qpd3yshWtRu%2BQ%40mail.gmail.com
[2].
For more options, visit https://groups.google.com/d/optout [3].
Links:
------
[1] http://ant.project.name
[2]
https://groups.google.com/d/msgid/jacoco/CAJT7cy9ehbNhAMu70aeY-Awq14w1dZ0FG9fp8Qpd3yshWtRu%2BQ%40mail.gmail.com?utm_medium=email&utm_source=footer
[3] https://groups.google.com/d/optout
--
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/aea24472a0d35444521dc3555fb2bd0d%40mountainminds.com.
For more options, visit https://groups.google.com/d/optout.