Report not finding source code

View: New views
6 Messages — Rating Filter:   Alert me  

Report not finding source code

by Wilkinson, Adam :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi,

 

I’ve gotten this to work before and frankly I have no idea what is different in this project as opposed to others, but when I run cobertura-report none of the source code goes into the report. I get back the nice “Unable to locate file.java. Have you specified the source directory?” in each class’s report.

 

Everything normal here (except of course very fast because it’s not writing large html files full of source code…)

> ant -f build-cober.xml report

Buildfile: build-cober.xml

 

report:

[cobertura-report] Cobertura 1.8 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file

[cobertura-report] Cobertura: Loaded information on 752 classes.

[cobertura-report] Report time: 31462ms

 

BUILD SUCCESSFUL

Total time: 36 seconds

 

 

Relevant build file information:

<target name="report">

<cobertura-report  destdir="${test.reports}/cober">

<fileset dir="/path/java_src">  <!-- All files are there most definitely, nothing in jars, all in package-relevant subfolders -->

<include name="**/*.java" />

</fileset>

</cobertura-report>

</target>

 

I’ve also tried the other format:

<target name=”report”>

            <cobertura-report srcdir=”/path/java_src” destdir=”$test.reports}/cober” />

</target>

 

Neither are successful, yet in other projects (with fewer class files) there has been no problem.


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Cobertura-devel mailing list
Cobertura-devel@...
https://lists.sourceforge.net/lists/listinfo/cobertura-devel

Re: Report not finding source code

by John W. Lewis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

 

Is /path/java_src the directory that corresponds to the default package?   It has to be.

 

From: cobertura-devel-bounces@... [mailto:cobertura-devel-bounces@...] On Behalf Of Wilkinson, Adam
Sent: Monday, June 30, 2008 1:44 PM
To: cobertura-devel@...
Subject: [Cobertura-devel] Report not finding source code

 

Hi,

 

I’ve gotten this to work before and frankly I have no idea what is different in this project as opposed to others, but when I run cobertura-report none of the source code goes into the report. I get back the nice “Unable to locate file.java. Have you specified the source directory?” in each class’s report.

 

Everything normal here (except of course very fast because it’s not writing large html files full of source code…)

> ant -f build-cober.xml report

Buildfile: build-cober.xml

 

report:

[cobertura-report] Cobertura 1.8 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file

[cobertura-report] Cobertura: Loaded information on 752 classes.

[cobertura-report] Report time: 31462ms

 

BUILD SUCCESSFUL

Total time: 36 seconds

 

 

Relevant build file information:

<target name="report">

<cobertura-report  destdir="${test.reports}/cober">

<fileset dir="/path/java_src">  <!-- All files are there most definitely, nothing in jars, all in package-relevant subfolders -->

<include name="**/*.java" />

</fileset>

</cobertura-report>

</target>

 

I’ve also tried the other format:

<target name=”report”>

            <cobertura-report srcdir=”/path/java_src” destdir=”$test.reports}/cober” />

</target>

 

Neither are successful, yet in other projects (with fewer class files) there has been no problem.


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Cobertura-devel mailing list
Cobertura-devel@...
https://lists.sourceforge.net/lists/listinfo/cobertura-devel

Re: Report not finding source code

by Wilkinson, Adam :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Yes it is the default package directory.

 


From: John W. Lewis [mailto:JohnW.Lewis@...]
Sent: Monday, June 30, 2008 12:25 PM
To: Wilkinson, Adam; cobertura-devel@...
Subject: RE: Report not finding source code

 

 

Is /path/java_src the directory that corresponds to the default package?   It has to be.

 

From: cobertura-devel-bounces@... [mailto:cobertura-devel-bounces@...] On Behalf Of Wilkinson, Adam
Sent: Monday, June 30, 2008 1:44 PM
To: cobertura-devel@...
Subject: [Cobertura-devel] Report not finding source code

 

Hi,

 

I’ve gotten this to work before and frankly I have no idea what is different in this project as opposed to others, but when I run cobertura-report none of the source code goes into the report. I get back the nice “Unable to locate file.java. Have you specified the source directory?” in each class’s report.

 

Everything normal here (except of course very fast because it’s not writing large html files full of source code…)

> ant -f build-cober.xml report

Buildfile: build-cober.xml

 

report:

[cobertura-report] Cobertura 1.8 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file

[cobertura-report] Cobertura: Loaded information on 752 classes.

[cobertura-report] Report time: 31462ms

 

BUILD SUCCESSFUL

Total time: 36 seconds

 

 

Relevant build file information:

<target name="report">

<cobertura-report  destdir="${test.reports}/cober">

<fileset dir="/path/java_src">  <!-- All files are there most definitely, nothing in jars, all in package-relevant subfolders -->

<include name="**/*.java" />

</fileset>

</cobertura-report>

</target>

 

I’ve also tried the other format:

<target name=”report”>

            <cobertura-report srcdir=”/path/java_src” destdir=”$test.reports}/cober” />

</target>

 

Neither are successful, yet in other projects (with fewer class files) there has been no problem.


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Cobertura-devel mailing list
Cobertura-devel@...
https://lists.sourceforge.net/lists/listinfo/cobertura-devel

Re: Report not finding source code

by John W. Lewis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

 

I can't see a problem.   Do you mind trying Cobertura 1.9?

 

From: Wilkinson, Adam [mailto:adam.wilkinson@...]
Sent: Monday, June 30, 2008 2:31 PM
To: John W. Lewis; cobertura-devel@...
Subject: RE: Report not finding source code

 

Yes it is the default package directory.

 


From: John W. Lewis [mailto:JohnW.Lewis@...]
Sent: Monday, June 30, 2008 12:25 PM
To: Wilkinson, Adam; cobertura-devel@...
Subject: RE: Report not finding source code

 

 

Is /path/java_src the directory that corresponds to the default package?   It has to be.

 

From: cobertura-devel-bounces@... [mailto:cobertura-devel-bounces@...] On Behalf Of Wilkinson, Adam
Sent: Monday, June 30, 2008 1:44 PM
To: cobertura-devel@...
Subject: [Cobertura-devel] Report not finding source code

 

Hi,

 

I’ve gotten this to work before and frankly I have no idea what is different in this project as opposed to others, but when I run cobertura-report none of the source code goes into the report. I get back the nice “Unable to locate file.java. Have you specified the source directory?” in each class’s report.

 

Everything normal here (except of course very fast because it’s not writing large html files full of source code…)

> ant -f build-cober.xml report

Buildfile: build-cober.xml

 

report:

[cobertura-report] Cobertura 1.8 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file

[cobertura-report] Cobertura: Loaded information on 752 classes.

[cobertura-report] Report time: 31462ms

 

BUILD SUCCESSFUL

Total time: 36 seconds

 

 

Relevant build file information:

<target name="report">

<cobertura-report  destdir="${test.reports}/cober">

<fileset dir="/path/java_src">  <!-- All files are there most definitely, nothing in jars, all in package-relevant subfolders -->

<include name="**/*.java" />

</fileset>

</cobertura-report>

</target>

 

I’ve also tried the other format:

<target name=”report”>

            <cobertura-report srcdir=”/path/java_src” destdir=”$test.reports}/cober” />

</target>

 

Neither are successful, yet in other projects (with fewer class files) there has been no problem.


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Cobertura-devel mailing list
Cobertura-devel@...
https://lists.sourceforge.net/lists/listinfo/cobertura-devel

Re: Report not finding source code

by Stephen Smith-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I don't see a problem either. Have you tried running Ant in verbose mode to
check your classpath?

I recently had a problem with Cobertura 1.9 where it didn't like instrumenting
classes, and the root cause was a CGLib JAR.

---
Stephen Smith, MEng (Wales).
http://www.stephen-smith.co.uk/

John W. Lewis wrote:

>  
>
> I can't see a problem.   Do you mind trying Cobertura 1.9?
>
>  
>
> *From:* Wilkinson, Adam [mailto:adam.wilkinson@...]
> *Sent:* Monday, June 30, 2008 2:31 PM
> *To:* John W. Lewis; cobertura-devel@...
> *Subject:* RE: Report not finding source code
>
>  
>
> Yes it is the default package directory.
>
>  
>
> ------------------------------------------------------------------------
>
> *From:* John W. Lewis [mailto:JohnW.Lewis@...]
> *Sent:* Monday, June 30, 2008 12:25 PM
> *To:* Wilkinson, Adam; cobertura-devel@...
> *Subject:* RE: Report not finding source code
>
>  
>
>  
>
> Is /path/java_src the directory that corresponds to the default
> package?   It has to be.
>
>  
>
> *From:* cobertura-devel-bounces@...
> [mailto:cobertura-devel-bounces@...] *On Behalf Of
> *Wilkinson, Adam
> *Sent:* Monday, June 30, 2008 1:44 PM
> *To:* cobertura-devel@...
> *Subject:* [Cobertura-devel] Report not finding source code
>
>  
>
> Hi,
>
>  
>
> I’ve gotten this to work before and frankly I have no idea what is
> different in this project as opposed to others, but when I run
> cobertura-report none of the source code goes into the report. I get
> back the nice “Unable to locate file.java. Have you specified the source
> directory?” in each class’s report.
>
>  
>
> Everything normal here (except of course very fast because it’s not
> writing large html files full of source code…)
>
>>  ant -f build-cober.xml report
>
> Buildfile: build-cober.xml
>
>  
>
> report:
>
> [cobertura-report] Cobertura 1.8 - GNU GPL License (NO WARRANTY) - See
> COPYRIGHT file
>
> [cobertura-report] Cobertura: Loaded information on 752 classes.
>
> [cobertura-report] Report time: 31462ms
>
>  
>
> BUILD SUCCESSFUL
>
> Total time: 36 seconds
>
>  
>
>  
>
> Relevant build file information:
>
> <target name="report">
>
> <cobertura-report  destdir="${test.reports}/cober">
>
> <fileset dir="/path/java_src">  <!-- All files are there most
> definitely, nothing in jars, all in package-relevant subfolders -->
>
> <include name="**/*.java" />
>
> </fileset>
>
> </cobertura-report>
>
> </target>
>
>  
>
> I’ve also tried the other format:
>
> <target name=”report”>
>
>             <cobertura-report srcdir=”/path/java_src”
> destdir=”$test.reports}/cober” />
>
> </target>
>
>  
>
> Neither are successful, yet in other projects (with fewer class files)
> there has been no problem.
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Cobertura-devel mailing list
> Cobertura-devel@...
> https://lists.sourceforge.net/lists/listinfo/cobertura-devel
>
>
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG.
> Version: 8.0.101 / Virus Database: 270.4.3/1525 - Release Date: 6/29/2008 3:09 PM

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Cobertura-devel mailing list
Cobertura-devel@...
https://lists.sourceforge.net/lists/listinfo/cobertura-devel

Re: Report not finding source code

by Wilkinson, Adam :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

> From: John W. Lewis [mailto:JohnW.Lewis@...]
> Sent: Monday, June 30, 2008 12:34 PM
> To: Wilkinson, Adam; cobertura-devel@...
> Subject: RE: Report not finding source code

 

> I can't see a problem.   Do you mind trying Cobertura 1.9?

 

 

> From: Stephen Smith [mailto:steve@...]
> Sent: Monday, June 30, 2008 12:40 PM
> To: John W. Lewis
> Cc: Wilkinson, Adam; cobertura-devel@...
> Subject: Re: [Cobertura-devel] Report not finding source code

 

> I don't see a problem either. Have you tried running Ant in verbose mode to

> check your classpath?

 

> I recently had a problem with Cobertura 1.9 where it didn't like instrumenting

> classes, and the root cause was a CGLib JAR.

 

 

I found the problem, it was two directory errors (one in a linked ant script, the other an out-of-scope variable) that worked together to make it very non-obvious. When in doubt clean one folder at a time…

 

Thanks for trying.


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Cobertura-devel mailing list
Cobertura-devel@...
https://lists.sourceforge.net/lists/listinfo/cobertura-devel
LightInTheBox - Buy quality products at wholesale price