I took a look at the patch (http://jira.codehaus.org/browse/MNG-2930) and applied it to a branch here: https://svn.apache.org/repos/asf/maven/shared/branches/maven-plugin-tool s-java-MNG-2930/
Everything seems good to me, the tests pass and everything builds ok. I'd like someone more familiar with this tool to look and bless before I merge. -----Original Message----- From: Jason Dillon [mailto:[EMAIL PROTECTED] On Behalf Of Jason Dillon Sent: Wednesday, April 04, 2007 4:11 PM To: Maven Developers List Subject: Update JavaMojoDescriptorExtractor to make it more re-use friendly Hi folks, I've been looking into getting Mojo descriptor generation working for the groovy-maven-plugin for the past few days... and I've finally got something that is working well. I went through a few iterations, and finally came to the conclusion that it would be simplest to parse the *.groovy sources, collect the javadoc blocks, generate a uber-minimal Java source, parse that source with QDox and then delegate the rest of the work to the JavaMojoDescriptorExtractor. By doing this, it means that the Groovy descriptor tag handling is in sync with the Java descriptor bits. BUT... to make this work, JavaMojoDescriptorExtractor needs a few minor changes, mostly to change a few access modifiers from private to protected... and also to replace the JavaSource usage with JavaClass. The later is minor, but the extractor isn't really using the JavaSource, it always gets the JavaClass, but it still passes around the JavaSource for no good reason. Anyways, I'm wondering if this is something that we could change? Right now I've duplicated the JavaMojoDescriptorExtractor into my mojo's project and made the modifications so that I can test/ verify... but I'd really like to get these changes committed to the maven-plugin-tools-java module directly. The changes are of course compatible with the current usage. Which JIRA project should I create an issue for this and attach my patch? Thanks, --jason --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]