Automatisierte Nutzung via Ant

Ein typisches Ant-Skript, das EMMA nutzt, ist in Beispiel 10-1 mit Ant dargestellt.

Beispiel 10-1. EMMA mit Ant

<project name="Agile" default="all"> <property name="root" value="/home/michael/junit"/> <property name="test.home" value="${root}/test"/> <property name="emma.dir" value="${root}/emma/lib"/> <path id="emma.lib"> <pathelement location="${emma.dir}/emma.jar"/> <pathelement location="${emma.dir}/emma_ant.jar"/> </path> <taskdef resource="emma_ant.properties" classpathref="emma.lib"/> <target name="all" depends="clean,compile-src,compile-test,instr,test,report-instr,report"/> <target name="clean"> <delete dir="${test.home}/classes"/> <delete dir="${test.home}/report"/> <delete dir="${test.home}/coverage"/> <mkdir ...

Get Agile Java-Entwicklung in der Praxis now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.