public static boolean isSame ( PlexusIoResource resource , File file ) { if ( resource instanceof FileSupplier ) { File resourceFile = ( ( FileSupplier ) resource ) . getFile ( ) ; return file . equals ( resourceFile ) ; } return false ; }
Checks whether the resource and the file are identical .