[
https://issues.apache.org/jira/browse/OFBIZ-4783?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13251042#comment-13251042
]
Erwan de FERRIERES commented on OFBIZ-4783:
-------------------------------------------
for testing:
{code}
<path id="test.class.path">
<fileset dir="framework/base/lib" includes="*.jar"/>
</path>
<target name="test-cob" depends="ofbiz-init">
<condition property="exclude.cobertura"
value="org/ofbiz/base/config/Cobertura*.java">
<not>
<available
classname="net.sourceforge.cobertura.instrument.ClassInstrumenter"
property="exclude.cobertura"
classpathref="test.class.path"/>
</not>
</condition>
<condition property="exclude.cobertura2"
value="org/ofbiz/base/config/Cobertura*.java">
<not>
<available file="cobertura-1.9.4.1.jar"
classpathref="test.class.path"/>
</not>
</condition>
<echo message="${exclude.cobertura}"/>
<echo message="${exclude.cobertura2}"/>
</target>
{code}
> ./ant can't find the cobertura class
> ------------------------------------
>
> Key: OFBIZ-4783
> URL: https://issues.apache.org/jira/browse/OFBIZ-4783
> Project: OFBiz
> Issue Type: Bug
> Components: framework
> Affects Versions: SVN trunk
> Reporter: Erwan de FERRIERES
> Labels: qa
> Fix For: SVN trunk
>
>
> ./ant can't find the cobertura class, and deactivate the code coverage
> function.
> in framework/base/build.xml:
> {code}
> <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>
> {code}
--
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