private static String getVersionFromVerFile ( ) throws IOException { //declared in a try-with-resource statement, it will be closed regardless of it completes normally or not try ( BufferedReader br = new BufferedReader ( new InputStreamReader ( DoradusServer . class . getResourceAsStream ( "/" + VERSION_FILE ) , "UTF-8" ) ) ) { return br . readLine ( ) ; } }
Get version from local file