// produce a more specific message for clients
String specificMessage = NLS.bind(EclipseAdaptorMsg.location_cannotLockNIO, new Object[] {lockFile, ioe.getMessage(), "\"-D" + BasicLocation.PROP_OSGI_LOCKING + "=none\""}); //$NON-NLS-1$ //$NON-NLS-2$
throw new IOException(specificMessage);
}
if (tempLock != null) {
tempLock.release(); // allow IOException to propagate because that would mean it is still locked
return false;
}
return true;
} catch (OverlappingFileLockException e) {
return true;