Changeset 5362 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2012-07-25T14:07:37+02:00 (12 years ago)
Author:
stoecker
Message:

reintroduce the feature to give the build a name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/Version.java

    r5266 r5362  
    6868    private String releaseDescription;
    6969    private String time;
     70    private String buildName;
    7071    private boolean isLocalBuild;
    7172
     
    131132        }
    132133
     134        // is this a specific build ?
     135        //
     136        buildName = null;
     137        value = properties.get("Build-Name");
     138        if (value != null && !value.trim().isEmpty())  {
     139            buildName = value.trim();
     140        }
     141
    133142        // the revision info
    134143        //
     
    199208        int v = getVersion();
    200209        String s = (v == JOSM_UNKNOWN_VERSION) ? "UNKNOWN" : Integer.toString(v);
     210        if (buildName != null) {
     211            s += " " + buildName;
     212        }
    201213        if (isLocalBuild() && v != JOSM_UNKNOWN_VERSION) {
    202214            s += " SVN";
Note: See TracChangeset for help on using the changeset viewer.