public static String getPropertyValue(DAVConnection connection, String path, String label, DAVElement property) throws SVNException { DAVProperties props = getResourceProperties(connection, path, label, new DAVElement[] {property}); Object value = props.getProperties().get(property); if (value == null) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_DAV_PROPS_NOT_FOUND, "''{0}'' was not present on the resource", property.toString()); SVNErrorManager.error(err); } return (String) value; }
public static String getPropertyValue(DAVConnection connection, String path, String label, DAVElement property) throws SVNException { DAVProperties props = getResourceProperties(connection, path, label, new DAVElement[] {property}); SVNPropertyValue value = props.getPropertyValue(property); if (value == null) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_DAV_PROPS_NOT_FOUND, "''{0}'' was not present on the resource", property.toString()); SVNErrorManager.error(err, SVNLogType.NETWORK); } return value.getString(); }
public static String getPropertyValue(DAVConnection connection, String path, String label, DAVElement property) throws SVNException { DAVProperties props = getResourceProperties(connection, path, label, new DAVElement[] {property}); SVNPropertyValue value = props.getPropertyValue(property); if (value == null) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_DAV_PROPS_NOT_FOUND, "''{0}'' was not present on the resource", property.toString()); SVNErrorManager.error(err, SVNLogType.NETWORK); } return value.getString(); }
public static String getPropertyValue(DAVConnection connection, String path, String label, DAVElement property) throws SVNException { DAVProperties props = getResourceProperties(connection, path, label, new DAVElement[] {property}); SVNPropertyValue value = props.getPropertyValue(property); if (value == null) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_DAV_PROPS_NOT_FOUND, "''{0}'' was not present on the resource", property.toString()); SVNErrorManager.error(err, SVNLogType.NETWORK); } return value.getString(); }
SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_NOT_IMPLEMENTED, "'update' response format used by the server is not supported; element ''{0}'' was not expected", element.toString()); SVNErrorManager.error(err); } else if (element == TX_DELTA) {