Commit 108f5f83 authored by hal's avatar hal

Merge pull request #73 from halatmit/fix-build-version

generate "none" as the buld version in the case where git describe fails
parents 0ead97ab 693c9b73
......@@ -18,9 +18,12 @@ public final class GitBuildId {
public static String getVersion() {
String version = GIT_BUILD_VERSION;
// We can't use isEmpty() here because we want this to run
// in jdk 1.5 for the Blocks Editor
if (version.equals("")) {
// This catches the emptry string or the error returned by git describe
// in the case where there is no description. In general
// the version needs to be a string that can be
// embedded into a legal file name. If it can't, then the
// blocks editor won't load.
if ((version == "") || version.contains(" ")) {
return "none" ;
} else {
return version;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment