[ 
http://jira.codehaus.org/browse/MJAXB-9?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dennis Lundberg moved MOJO-340 to MJAXB-9:
------------------------------------------

    Component/s:     (was: jaxb2)
            Key: MJAXB-9  (was: MOJO-340)
        Project: Maven 2.x JAXB 2.0 Plugin  (was: Mojo)

> Jaxb2 Mojo does not honor the -extension option
> -----------------------------------------------
>
>                 Key: MJAXB-9
>                 URL: http://jira.codehaus.org/browse/MJAXB-9
>             Project: Maven 2.x JAXB 2.0 Plugin
>          Issue Type: Bug
>         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

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to