Hi,
on testing with this ant task extension I detected that it does not works well for test case methods which are coming from a super test class. In this case the original code does not create a javadoc comment for the appropriate method.
The reason is that the static method org.woopi.ant.taskdefs.junit.JavadocExtractor.getMethodDocByObject(Object, String) fetches only the class it implements but for test methods declared in super test classes no comment is retrieved.
I have adopted the source by dividing the JavadocExtractor in to classes. The JavadocExtractor for extracting the javadoc comment (only slightly changed and streamlined) and a JavadocRetriever class which does the work the getMethodDocByObject() method has done before. But instead of querying only the original test class for javadoc comments also super classes will be queried recursively until a comment is found or junit.framework.TestCase is reached.
The two attached files can be used together with original distribution of this package, only the Documented interface implementation in the base test class has to changed as described in the JavadocRetriever class documentation and the doclet reference in the taks has to be pointed to the new doclet, similiar to the following:
<doclet name="com.wn.retail.jpos17.JavadocExtractor">
<param name="-J-DJavadocExtractor.destDir=${test.dir}/class"/>
</doclet>
Denis
contains JavadocRetriever.java and JavadocExtractor.java