cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-4791) Passing arguments to JAXB compiler from WADL2Java
Date Fri, 01 Feb 2013 14:12:12 GMT

    [ https://issues.apache.org/jira/browse/CXF-4791?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13568752#comment-13568752
] 

Sergey Beryozkin commented on CXF-4791:
---------------------------------------

Brilliant, I really should've figured out that myself :-), many thanks
                
> Passing arguments to JAXB compiler from WADL2Java
> -------------------------------------------------
>
>                 Key: CXF-4791
>                 URL: https://issues.apache.org/jira/browse/CXF-4791
>             Project: CXF
>          Issue Type: New Feature
>          Components: Build system, Tooling
>    Affects Versions: 2.7.2
>         Environment: cxf-wadl2java-plugin
>            Reporter: Artur Chy┼╝y
>              Labels: patch
>             Fix For: 2.8.0
>
>         Attachments: jaxb_arguments_2.6.x.patch, jaxb_arguments.patch
>
>
> I needed it for cxf-wadl2java-plugin originally. But since it is a part of tools the
change will be propagated. Arguments are passed through existing plugin parameter <extraargs>
with prefix -xjc. 
> Patch is included. 
> Example usage:
> {code}
> <extraargs>
>     <extraarg>-xjc-XtoString</extraarg>
> </extraargs>
> {code}
> I also added a test for generating toString with JAXB objects (this required dependency
for jaxb2-basics with test scope). 
> Things already done:
> 1. Multiple arguments allowed
> 2. Code passed checkstyle verification
> 3. Prepared on trunk (2.8.0-SNAPSHOT)
> Things to consider to change:
> 1. Implementation eventually
> 2. Add additional verification for test to check if toString was really generated
> 3. Replace dependency to jaxb2-basics with custom plugin (for tests)
> I don't know if I have to add it but I provide this code without any warranty and for
free. You can use it or change it whatever you like. 
> But it would be good if you would consider adding it as for now it is impossible to pass
jaxb arguments which can be very useful (even mandatory)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message