File file = resource.getLocation().toFile();
File file; if (resource != null) file = resource.getLocation().toFile(); else file = path.toFile();
    public void execute(ISVNClientAdapter client) throws SVNException {        ISVNNotifyListener revisionListener = new ISVNNotifyListener() {            public void setCommand(int command) {}            public void logCommandLine(String commandLine) {}            public void logMessage(String message) {}            public void logError(String message) {}            public void logRevision(long aRevision, String path) {                PeekStatusCommand.this.revision = new SVNRevision.Number(aRevision);            }            public void logCompleted(String message) {}            public void onNotify(File path, SVNNodeKind kind) {}        };        try{            client.addNotifyListener( revisionListener );            File file = resource.getLocation().toFile();            status = null;            ISVNStatus[] statuses = client.getStatus( file, false, true, false);            for (int i = 0; i < statuses.length; i++) {				if (file.equals(statuses[i].getFile()))				{					status = statuses[i];					if (status.getUrl() == null && !(status.getTextStatus() == SVNStatusKind.UNVERSIONED))						info = client.getInfo(status.getFile());					break;				}			}        }        catch (SVNClientException e) {        	throw SVNException.wrapException(e);        }        finally {            client.removeNotifyListener( revisionListener );        }    }