[ 
https://issues.apache.org/jira/browse/OFBIZ-4757?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13243055#comment-13243055
 ] 

Pierre Smits commented on OFBIZ-4757:
-------------------------------------

The above mentioned files are not generated, because in the file 
'framework/base/build.xml following pieces of code in the 'init' target 
prevents the Cobertura worker to be started:


        <condition property="exclude.cobertura" 
value="org/ofbiz/base/config/Cobertura*.java">
            <not>
                <available 
classname="net.sourceforge.cobertura.instrument.ClassInstrumenter" 
classpathref="local.class.path"/>
            </not>
        </condition>

 
and later on:
            
                <exclude name="${exclude.cobertura}"/>
        

In a testbed on Mac where I excluded (remmed out) the pieces of code, the 
run-tests targets runs properly and cobertura output is generated.
                
> Cobertura targets fail
> ----------------------
>
>                 Key: OFBIZ-4757
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4757
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Release 09.04.01, Release 10.04, Release Branch 11.04, 
> SVN trunk
>         Environment: UBUNTU 10.04 LTS, Mac OS X 10.6.8
>            Reporter: Pierre Smits
>            Assignee: Erwan de FERRIERES
>             Fix For: Release Branch 11.04, SVN trunk
>
>         Attachments: log.ofbiz.cobertura
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> When running ./ant cobertura-report or ./ant cobertura-report-xml following 
> error is generated:
> Buildfile: /Users/s0001/Documents/workspace/ofbiz-trunk/build.xml
> cobertura-report-xml:
>    [delete] Deleting directory 
> /Users/s0001/Documents/workspace/ofbiz-trunk/runtime/logs/cobertura-report
>     [mkdir] Created dir: 
> /Users/s0001/Documents/workspace/ofbiz-trunk/runtime/logs/cobertura-report
> [cobertura-merge] Cobertura 1.9.4.1 - GNU GPL License (NO WARRANTY) - See 
> COPYRIGHT file
> [cobertura-merge] Error: No files were specified for merging.
> BUILD FAILED
> /Users/s0001/Documents/workspace/ofbiz-trunk/build.xml:1003: Error running 
> reports. See messages above.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to