Пример #1
0
 public void setProperties(SVNProperties properties) throws SVNException {
   if (properties != null) {
     for (Iterator names = properties.nameSet().iterator(); names.hasNext(); ) {
       String name = (String) names.next();
       SVNPropertyValue value = properties.getSVNPropertyValue(name);
       setPropertyValue(name, value);
     }
   }
 }
Пример #2
0
 public void setPropertyValue(String name, SVNPropertyValue value) throws SVNException {
   byte[] bytes = SVNPropertyValue.getPropertyAsBytes(value);
   int length = bytes != null && bytes.length >= 0 ? bytes.length : -1;
   setPropertyValue(name, bytes != null ? new ByteArrayInputStream(bytes) : null, length);
 }