private static void addPropertyPresentation(
     final SVNPropertyData property, final StringBuilder sb) {
   if (sb.length() != 0) {
     sb.append(ourPropertiesDelimiter);
   }
   sb.append(property.getName())
       .append("=")
       .append(
           (property.getValue() == null)
               ? ""
               : SVNPropertyValue.getPropertyAsString(property.getValue()));
 }
예제 #2
0
  private void listExternals(
      SVNRepository repository,
      Map<SVNURL, SVNPropertyValue> externals,
      SVNDepth depth,
      int entryFields,
      boolean fetchLocks,
      ISVNDirEntryHandler handler)
      throws SVNException {
    for (Map.Entry<SVNURL, SVNPropertyValue> entry : externals.entrySet()) {
      SVNURL externalParentUrl = entry.getKey();
      SVNPropertyValue externalValue = entry.getValue();

      SVNExternal[] externalItems =
          SVNExternal.parseExternals(
              externalParentUrl, SVNPropertyValue.getPropertyAsString(externalValue));
      if (externalItems == null || externalItems.length == 0) {
        continue;
      }
      listExternalItems(
          repository, externalItems, externalParentUrl, depth, entryFields, fetchLocks, handler);
    }
  }