You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Martin Fernau <ma...@fernausoft.de> on 2013/07/31 14:48:22 UTC

wsdl2java - suppressing timestamps in Javadoc/comments?

Hi there,

is there a switch or 'undocumented feature' to suppressing timestamps in
javadoc/comments for generated classes?
I mean this on:
-- cut
/**
 * This class was generated by Apache CXF 2.7.1
 * 2013-03-25T11:50:57.111+01:00
 * Generated source version: 2.7.1
 *
 */
-- cut

If one is using a vcs and regenerate classes from WSDL-File you get lots
of changed files because the timestamps in such comments changed.
Would be nice to have the classes generally not containing any such
timestamps so your vcs doesn't mark these files as changed.

Thanks
Martin Fernau

Re: wsdl2java - suppressing timestamps in Javadoc/comments?

Posted by Daniel Kulp <dk...@apache.org>.
There currently isn't a way to turn this off.  A patch to turn this off (and likely not generate the date="…" attribute in the @Generated annotation if the -mark-generated flag is passed) would be welcome. 

Dan



On Jul 31, 2013, at 8:48 AM, Martin Fernau <ma...@fernausoft.de> wrote:

> Hi there,
> 
> is there a switch or 'undocumented feature' to suppressing timestamps in
> javadoc/comments for generated classes?
> I mean this on:
> -- cut
> /**
> * This class was generated by Apache CXF 2.7.1
> * 2013-03-25T11:50:57.111+01:00
> * Generated source version: 2.7.1
> *
> */
> -- cut
> 
> If one is using a vcs and regenerate classes from WSDL-File you get lots
> of changed files because the timestamps in such comments changed.
> Would be nice to have the classes generally not containing any such
> timestamps so your vcs doesn't mark these files as changed.
> 
> Thanks
> Martin Fernau

-- 
Daniel Kulp
dkulp@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com


Re: wsdl2java - suppressing timestamps in Javadoc/comments?

Posted by Dennis Kieselhorst <de...@apache.org>.
> is there a switch or 'undocumented feature' to suppressing timestamps in
> javadoc/comments for generated classes?
> I mean this on:
> -- cut
> /**
>  * This class was generated by Apache CXF 2.7.1
>  * 2013-03-25T11:50:57.111+01:00
>  * Generated source version: 2.7.1
>  *
>  */
> -- cut
> 
> If one is using a vcs and regenerate classes from WSDL-File you get lots
> of changed files because the timestamps in such comments changed.
> Would be nice to have the classes generally not containing any such
> timestamps so your vcs doesn't mark these files as changed.

This will be supported in CXF 3.2.2, see https://issues.apache.org/jira/projects/CXF/issues/CXF-7618

Thanks to Peter Butkovic for the patch.

Regards
Dennis