[ http://jira.codehaus.org/browse/MOJO-340?page=all ]
Jeff Genender closed MOJO-340:
------------------------------
Resolution: Fixed
Fixed...Thanks.
Sending src/main/java/org/codehaus/mojo/jaxb2/XjcMojo.java
Transmitting file data .
Committed revision 1739.
> Jaxb2 Mojo does not honor the -extension option
> -----------------------------------------------
>
> Key: MOJO-340
> URL: http://jira.codehaus.org/browse/MOJO-340
> Project: Mojo
> Type: Bug
> Components: sandbox
> Environment: Maven 2, Jaxb2 plug-in from mojo sandbox tree
> Reporter: Andreas Guther
>
>
> Jaxb allows to set the vendor option -extension:
> https://jaxb.dev.java.net/nonav/jaxb20-ea/docs/xjc.html.
> The current implementation of the Jaxb2 Mojo has a field extension but does
> not consider it while generating the arguments list. The following patch
> will fix the problem:
> Index: C:/Documents and
> Settings/aguther/workspace/Jaxb2-maven-plugin-codehaus/src/main/java/org/codehaus/mojo/jaxb2/XjcMojo.java
> ===================================================================
> --- C:/Documents and
> Settings/aguther/workspace/Jaxb2-maven-plugin-codehaus/src/main/java/org/codehaus/mojo/jaxb2/XjcMojo.java
> (revision 1691)
> +++ C:/Documents and
> Settings/aguther/workspace/Jaxb2-maven-plugin-codehaus/src/main/java/org/codehaus/mojo/jaxb2/XjcMojo.java
> (working copy)
> @@ -306,6 +306,11 @@
> args.add("-catalog");
> args.add(catalog);
> }
> +
> + if (extension) {
> + args.add("-extension");
> + }
> +
> args.add("-d");
> args.add(outputDirectory);
> args.add("-classpath");
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira