Hello all,

I need to enhance the Jaxb2 Maven Plugin to optionally merge JavaDoc
comments into XSDs generated from JAXB-annotated classes. In order to do
this, I need to develop a custom Doclet - and unit test it, just like I do
all other code I develop.

*Alas:* What's the best practise for setting up Doclet tests in a Maven
project?
*Condition:* I don't want to resort to AbstractMojoTestCases, as I am not
attempting to create reports. I would simply like a plain jUnit testcase
for a Doclet.


*Background*
This custom Doclet is not intended to generate Maven documentation, but
instead to perform postprocessing of java sources to inject javadoc
comments into generated XSDs on the form shown below:

/**
 * Some information here...
 */
@XmlType(namespace =
"http://www.jguru.se/foobar";)@XmlAccessorType(XmlAccessType.FIELD)public
class SomeType { ... }

... should yield ...

<xs:complexType name="someType">
     <xs:annotation>
          <xs:documentation>
               Some information here...
          </xs:documentation>
     </xs:annotation>
     <xs:complexContent>
     ....


The issue opened is http://jira.codehaus.org/browse/MJAXB-103.

-- 

--
+==============================+
| Bästa hälsningar,
| [sw. "Best regards"]
|
| Lennart Jörelid
| EAI Architect & Integrator
|
| jGuru Europe AB
| Mölnlycke - Kista
|
| Email: l...@jguru.se
| URL:   www.jguru.se
| Phone
| (skype):    jgurueurope
| (intl):     +46 708 507 603
| (domestic): 0708 - 507 603
+==============================+

Reply via email to