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.2\doc\examples\build>c:\apache-ant-1.9.4\bin\ant -lib 
C:\jacoco-0.7.2\lib\jacocoant.jar -v -d -f build.xml report
Apache Ant(TM) version 1.9.4 compiled on April 29 2014
Buildfile: C:\jacoco-0.7.2\doc\examples\build\build.xml
Adding reference: ant.PropertyHelper
Detected Java version: 1.7 in: C:\Program Files\Java\jdk1.7.0_25\jre
Detected OS: Windows 8
Adding reference: ant.ComponentHelper
Setting ro project property: ant.file -> 
C:\jacoco-0.7.2\doc\examples\build\build.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.2\doc\examples\build\build.xml with URI = 
file:/C:/jacoco-0.7.2/doc/examples/build/build.xml
Setting ro project property: ant.project.name -> 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.2\doc\examples\build\build.xml
Setting ro project property: ant.file.type.TIBCO BusinessEvents -> file
Project base dir set to: C:\jacoco-0.7.2\doc\examples\build
 +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:\temp\jacoco
Setting project property: src.dir -> C:\svn\be\DEV\5.2
Setting project property: result.report.dir -> 
C:\temp\jacoco\reports\reports-be520-addons-ga
Setting project property: result.exec.file.final -> 
C:\temp\jacoco\data\final\jacoco-be520.exec
Setting project property: result.exec.file.collection -> C:\temp\jacoco\data
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:\temp\jacoco\data\final\jacoco-be520.exec
fileset: Setup scanner in dir C:\temp\jacoco\classes with patternSet{ includes: 
[] excludes: [] }
[jacoco:report] Writing bundle 'BE Standard Runtime' with 2 classes
fileset: Setup scanner in dir C:\temp\jacoco\tmp\src with patternSet{ includes: 
[com/tibco/cep/cep_baseVersion.java] excludes: [] }
fileset: Setup scanner in dir C:\temp\jacoco\tmp\src 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/750f175e-cee0-4ac1-8e69-6c481cc23852%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to