private static boolean checkLib ( final File f , String basename ) { boolean fExists = System . getSecurityManager ( ) == null ? f . exists ( ) : AccessController . doPrivileged ( new PrivilegedAction < Boolean > ( ) { @ Override public Boolean run ( ) { return f . exists ( ) ; } } ) ; return fExists && ( f . getName ( ) . equals ( basename ) || ( isWindows ( basename ) && f . getName ( ) . equalsIgnoreCase ( basename ) ) ) ; }
Check if the given file s name matches the given library basename .