Add the -no-header argument to jaxb generator to give deterministic output

Review Request #3179 - Created Nov. 25, 2015 and submitted

Information
Eric Ayers
pants
zundel/make-jaxb-deterministic
1768, 2627
fe5434c...
Reviewers
pants-reviews
gmalmquist, jsirois, stuhood

Makes the jaxb output deterministic to make it compatible with caching.
Also removed some logic for global codegen strategy that is no longer needed.

The jaxb generator adds a timestamp to each java file it generates by default.

  // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
  // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
  // Any modifications to this file will be lost upon recompilation of the source schema.
  // Generated on: 2015.07.09 at 03:50:50 PM PDT

Fortuantely, you can easiliy turn this off

$ xjc -h | grep header
  -no-header         :  suppress generation of a file header with timestamp

CI is running at https://travis-ci.org/pantsbuild/pants/builds/93226958
Updated unit tests.

Benjy Weinberger
Eric Ayers
Review request changed

Status: Closed (submitted)

Change Summary:

Thanks Benjy! Commit 3e0da3f

Loading...