ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From qq_nn <smile_...@163.com>
Subject Re: Emma errors in Hudson
Date Fri, 26 Mar 2010 06:02:12 GMT

The warnning message about emma.lib is coming out each time when I am ok to
use it in the past. but I don't know why it is failed now even I did not
change anything.

the emma.lib is set to ANT_HOME\lib which I am using.


qq_nn wrote:
> 
> Hi,
> 
> I am running Emma in Hudson to get the code coverage. but unfortunately I
> got following errors:
> emma-instr:
> 
>    [delete] Deleting directory c:\jobs\workspace\MYJOB\RPT\emma
> 
>    [delete] Deleting directory c:\jobs\workspace\MYJOB\RPT\junit
> 
>     [mkdir] Created dir: c:\jobs\workspace\MYJOB\RPT\emma
> 
>     [mkdir] Created dir: c:\jobs\workspace\MYJOB\RPT\emma\instr
> 
> Warning: Reference emma.lib has not been set at runtime, but was found
> during
> 
> build file parsing, attempting to resolve. Future versions of Ant may
> support
> 
>  referencing ids defined in non-executed targets.
> 
>     [instr] processing instrumentation path ...
> 
> 
> 
> BUILD FAILED
> 
> java.lang.IllegalStateException: class [com.myproject.main.Main$1] appears
> to be instrumented already
> 
> 	at com.vladium.emma.instr.InstrVisitor.visit(InstrVisitor.java:172)
> 
> 	at com.vladium.emma.instr.InstrVisitor.process(InstrVisitor.java:111)
> 
> 	at
> com.vladium.emma.instr.InstrProcessorST.handleArchiveEntry(InstrProcessorST.java:223)
> 
> following is the instr target:
>     <emma enabled="true">  
>       <instr instrpathref="classpath.main"    
>               destdir="${rpt.instr.dir}"  
>               metadatafile="${rpt.emma.dir}/metadata.emma"  
>               merge="true"  >
> 			   <filter value="-org.*,-javax.*,-com.icl.*"/>
>        </instr> 
>     </emma>
> 
> 
> Could anyone what's the root cause? Thanks very much
> 

-- 
View this message in context: http://old.nabble.com/Emma-errors-in-Hudson-tp28037672p28038545.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message