public ProjectFileLock() {
lockFiles = Maps.newIdentityHashMap();
}
public synchronized boolean acquire(File location) {
LockingFile file = new LockingFile(new File(location, FILE_NAME));
if (file.acquire()) {
lockFiles.put(location, file);
return true;
}
return false;
}