wsdl2java - suppressing timestamps in Javadoc/comments?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

wsdl2java - suppressing timestamps in Javadoc/comments?

Martin Fernau
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
Reply | Threaded
Open this post in threaded view
|

Re: wsdl2java - suppressing timestamps in Javadoc/comments?

Daniel  Kulp
Administrator

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 <[hidden email]> 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
[hidden email] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Reply | Threaded
Open this post in threaded view
|

Re: wsdl2java - suppressing timestamps in Javadoc/comments?

deki
In reply to this post by Martin Fernau
> 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