public void doGetProperty(SVNURL url, String propName, SVNRevision pegRevision, SVNRevision revision, boolean recursive, ISVNPropertyHandler handler) throws SVNException { if (propName != null && propName.startsWith(SVNProperty.SVN_WC_PREFIX)) { SVNErrorManager.error("svn: '" + propName + "' is a wcprop , thus not accessible to clients"); } if (revision == null || !revision.isValid()) { revision = SVNRevision.HEAD; } SVNRepository repos = createRepository(url, null, pegRevision, revision); doGetRemoteProperty(url, "", repos, propName, revision, recursive, handler);
public SVNPropertyData doGetProperty(final File path, String propName, SVNRevision pegRevision, SVNRevision revision, boolean recursive) throws SVNException { final SVNPropertyData[] data = new SVNPropertyData[1]; doGetProperty(path, propName, pegRevision, revision, recursive, new ISVNPropertyHandler() { public void handleProperty(File file, SVNPropertyData property) { if (data[0] == null && path.equals(file)) { data[0] = property; } } public void handleProperty(SVNURL url, SVNPropertyData property) { } public void handleProperty(long revision, SVNPropertyData property) { } }); return data[0];
    public void doGetProperty(SVNURL url, String propName, SVNRevision pegRevision, SVNRevision revision, boolean recursive, ISVNPropertyHandler handler) throws SVNException {        if (propName != null && propName.startsWith(SVNProperty.SVN_WC_PREFIX)) {            SVNErrorManager.error("svn: '" + propName + "' is a wcprop , thus not accessible to clients");        }        if (revision == null || !revision.isValid()) {            revision = SVNRevision.HEAD;        }        SVNRepository repos = createRepository(url, null, pegRevision, revision);        doGetRemoteProperty(url, "", repos, propName, revision, recursive, handler);    }