public static String getVersion ( ) { String version = Default . VERSION_UNKNOW . toString ( ) ; try ( InputStream inputStream = Resources . getResource ( Default . VERSION_PROPERTIES . toString ( ) ) . openStream ( ) ) { final Properties properties = new Properties ( ) ; properties . load ( inputStream ) ; version = String . valueOf ( properties . get ( "version" ) ) ; } catch ( final IOException e ) { LOG . error ( "Failed to get application version" , e ) ; } return version ; }
Retrieves the current version of the framework from the version . properties file