public static int getBuildVersion ( ) { try { Properties props = new Properties ( ) ; props . load ( ResourceLoader . getResourceAsStream ( "version" ) ) ; int build = Integer . parseInt ( props . getProperty ( "build" ) ) ; Log . info ( "Slick Build #" + build ) ; return build ; } catch ( Exception e ) { Log . error ( "Unable to determine Slick build number" ) ; return - 1 ; } }
Get the build number of slick