typetools / checker-framework

Pluggable type-checking for Java
http://checkerframework.org/
Other
1.02k stars 355 forks source link

Display hg revision in version information of non-release builds #229

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Calling "javac -version" currently displays something like:

javac 1.7.0-jsr308-1.6.4

Regardless of how many commits happened in the jsr308-langtools or 
checker-framework repositories since the last release.
For non-release builds it would be useful to additionally display parts of the 
output of "hg tip", e.g.

javac 1.7.0-jsr308-1.6.4 (dev build; jsr308-langtools: 051b0d96ed42 
checker-framework: 22d84fc38c4f)

Original issue reported on code.google.com by wdi...@gmail.com on 15 Jun 2013 at 1:24

mernst commented 6 years ago

Relevant parts of the code are

milestone = jsr308-${jsr308.version}

line in jsr308-langtools/make/build.properties and the -version and -fullversion options in jsr308-langtools/src/share/classes/com/sun/tools/javac/main/Options.java.

Including the Checker Framework version seems to require changing javac, but we would prefer to minimize changes to it.