Changeset 5362 in josm


Ignore:
Timestamp:
Jul 25, 2012 2:07:37 PM (10 months ago)
Author:
stoecker
Message:

reintroduce the feature to give the build a name

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/build.xml

    r5323 r5362  
    5555        <property name="version.entry.commit.revision" value="UNKNOWN"/> 
    5656        <mkdir dir="${revision.dir}"/> 
     57        <!-- add Build-Name: ... when making special builds, e.g. DEBIAN --> 
    5758        <echo file="${revision.dir}/REVISION"> 
    5859# automatically generated by JOSM build.xml - do not edit 
  • 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.