@ Deprecated public static String getResourceAbsolutePath ( String resource , Class clazz ) { Assert . notNullOrEmptyTrimmed ( resource , "Missing resource name!" ) ; URL file = clazz . getResource ( resource ) ; Assert . notNull ( file , "Resource: '" + resource + "', not found!" ) ; return file . getFile ( ) ; }
Gets absolute file path of resource