classname="org.apache.tools.ant.taskdefs.optional.dependencies.Dependencies"/>
<!-- Emma integration -->
- <path id="emma.lib">
- <fileset dir="${test.lib.dir}" includes="emma*.jar"/>
- </path>
- <taskdef resource="emma_ant.properties" classpathref="emma.lib" />
- <property name="emma.enabled" value="false"/>
+ <if>
+ <available file="${test.lib.dir}"/>
+ <then>
+ <path id="emma.lib">
+ <fileset dir="${test.lib.dir}" includes="emma*.jar"/>
+ </path>
+ <taskdef resource="emma_ant.properties" classpathref="emma.lib" />
+ <property name="emma.enabled" value="false"/>
+ </then>
+ </if>
<!-- checkstyle -->
<property name="checkstyle.home" value="${ant.downloaded.lib.dir}"/>