public static String getVersion ( ) { String rev = getBuildRevision ( ) ; Date date = getBuildDate ( ) ; StringBuilder result = new StringBuilder ( ) ; result . append ( getReleaseName ( ) ) ; if ( ! "" . equals ( rev ) || date != null ) { result . append ( " (" ) ; boolean added = false ; if ( ! "" . equals ( rev ) ) { result . append ( "rev. " ) ; result . append ( rev ) ; added = true ; } if ( date != null ) { result . append ( added ? ", built " : "" ) ; SimpleDateFormat d = new SimpleDateFormat ( "yyyy-MM-dd HH:mm:ss" ) ; result . append ( d . format ( date ) ) ; } result . append ( ")" ) ; } return result . toString ( ) ; }
Get a humand readable summary of the version of this build .