public static String getVersion ( ) { Properties tcasesProperties = new Properties ( ) ; String tcasesPropertyFileName = "/tcases.properties" ; InputStream tcasesPropertyFile = null ; try { tcasesPropertyFile = Tcases . class . getResourceAsStream ( tcasesPropertyFileName ) ; tcasesProperties . load ( tcasesPropertyFile ) ; } catch ( Exception e ) { throw new RuntimeException ( "Can't read " + tcasesPropertyFileName , e ) ; } finally { IOUtils . closeQuietly ( tcasesPropertyFile ) ; } return "Tcases " + tcasesProperties . getProperty ( "tcases.version" ) + " (" + tcasesProperties . getProperty ( "tcases.date" ) + ")" ; }
Returns a description of the current version .