public static Resource getFile ( Config config , Resource directory , String path , short type ) { path = replacePlaceholder ( path , config ) ; if ( ! StringUtil . isEmpty ( path , true ) ) { Resource file = getFile ( directory . getRealResource ( path ) , type ) ; if ( file != null ) return file ; file = getFile ( config . getResource ( path ) , type ) ; if ( file != null ) return file ; } return null ; }
touch a file object by the string definition