SVNAdminArea area = wcAccess.open(path, true, recursive ? SVNWCAccess2.INFINITE_DEPTH : 1); doSetLocalProperty(area, "", propName, propValue, force, recursive, true, handler);
SVNAdminArea area = wcAccess.probeOpen(path, true, recursive ? SVNWCAccess2.INFINITE_DEPTH : 1); SVNEntry2 entry = wcAccess.getEntry(path, false); if (entry == null) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.UNVERSIONED_RESOURCE, "''{0}'' is not under version control", path); SVNErrorManager.error(err); } doSetLocalProperty(area, entry.isDirectory() ? area.getThisDirName() : entry.getName(), propName, propValue, force, recursive, true, handler);
    public void doSetProperty(File path, String propName, String propValue, boolean force, boolean recursive, ISVNPropertyHandler handler) throws SVNException {        propName = validatePropertyName(propName);        if (SVNRevisionProperty.isRevisionProperty(propName)) {            SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.CLIENT_PROPERTY_NAME, "Revision property ''{0}'' not allowed in this context", propName);            SVNErrorManager.error(err);        } else if (SVNProperty.isWorkingCopyProperty(propName)) {            SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.CLIENT_PROPERTY_NAME, "''{0}'' is a wcprop, thus not accessible to clients", propName);            SVNErrorManager.error(err);        } else if (SVNProperty.isEntryProperty(propName)) {            SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.CLIENT_PROPERTY_NAME, "''{0}'' is an entry property, thus not accessible to clients", propName);            SVNErrorManager.error(err);        }        propValue = validatePropertyValue(propName, propValue, force);        SVNWCAccess wcAccess = createWCAccess(path);        try {            wcAccess.open(true, recursive);            doSetLocalProperty(wcAccess.getAnchor(), wcAccess.getTargetName(), propName, propValue, force, recursive, true, handler);        } finally {            wcAccess.close(true);        }/*                SVNWCAccess2 wcAccess = SVNWCAccess2.newInstance(getEventDispatcher());        try {            SVNAdminArea area = wcAccess.open(path, true, recursive ? SVNWCAccess2.INFINITE_DEPTH : 1);            doSetLocalProperty(area, "", propName, propValue, force, recursive, true, handler);        } finally {            wcAccess.close();        }*/            }