protected String getVersion ( ) throws IOException { InputStream stream = null ; try { Properties version = new Properties ( ) ; stream = Cob2XsdMain . class . getResourceAsStream ( VERSION_FILE_NAME ) ; version . load ( stream ) ; return version . getProperty ( "version" ) ; } finally { if ( stream != null ) { stream . close ( ) ; } } }
Pick up the version from the properties file .