I have a thrift file - api.thrift
. The Java generator creates a date stamp on the generated Java file. Example:
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-9-4")
The problem is that the date is that the files are regenerated each time with a the generation date - even if the thrift file haven't changed.
How can I prevent the date generation? (or the complete code generation if the thrift file haven't been changed?)
THRIFT-3220 implements a solution for exactly this issue. Implemented in trunk and the forthcoming 0.9.3 release.
Usage:
thrift -gen java:generated_annotations=suppress yourfile.thrift