tkjn / GameTable

Online Game Table. The aims will be partially driven by the desire to use this software for gameplay similar to Warhammer Quest.
0 stars 1 forks source link

Re-factor generation of version details in ant #33

Open tkjn opened 7 years ago

tkjn commented 7 years ago

I recently added the "gen-version" target to the ant build.xml, which generates a java class with version and build information.

I think this should be re-factored to generate a non-java file which can be interpreted by a version controlled class rather than generating src code at build time.

I wonder if we could generate the version in ant using the git tag itself. We could also try to determine if the latest commit is a tagged release, if it's not a tagged release then also include the commit hash to show it's not a standard release build.