maven-plugins/junitdoclet/plugin.jelly
2003-01-24 03:44:26 +00:00

41 lines
1.3 KiB
XML

<project xmlns:j="jelly:core">
<!-- ================================================================== -->
<!-- J U N I T D O C L E T -->
<!-- ================================================================== -->
<goal name="junitdoclet"
description="Generate unit tests">
<mkdir dir="${maven.junitdoclet.outputDirectory}"/>
<path id="junitdoclet.classpath">
<path refid="maven.dependency.classpath"/>
<pathelement path="${plugin.getDependencyPath('junit-doclet')}"/>
</path>
<javadoc
packagenames = "${pom.package}.*"
sourcepath = "${pom.build.sourceDirectory}"
defaultexcludes = "yes"
doclet = "com.objectfab.tools.junitdoclet.JUnitDoclet"
docletpathref = "junitdoclet.classpath"
additionalparam = "-d ${maven.junitdoclet.outputDirectory} -buildall">
<classpath refid = "junitdoclet.classpath"/>>
</javadoc>
<!--
| JUnitDoclet produces suites but we don't need these because the
| JUnit plugin picks up the test cases to run.
-->
<delete>
<fileset dir="${maven.junitdoclet.outputDirectory}">
<include name="**/*Suite.java"/>
</fileset>
</delete>
</goal>
</project>