Collection entries = repositorio.getDir(path, -1, null, (Collection) null);
Iterator iterator = entries.iterator();
ArrayList<SVNEntrada> resultado = new ArrayList<SVNEntrada>();
while (iterator.hasNext()) {
SVNDirEntry entry = (SVNDirEntry) iterator.next();
/*
* System.out.println("/" + (path.equals("") ? "" : path + "/") +
* entry.getName() + " (author: '" + entry.getAuthor() + "';
* revision: " + entry.getRevision() + "; date: " +
* entry.getDate() + ")");
*/
/*
* Checking up if the entry is a directory.
*/
if (entry.getKind() == SVNNodeKind.DIR) {
// listEntries( (path.equals("")) ? entry.getName()
// : path + "/" + entry.getName());
}
SVNEntrada entrada = new SVNEntrada(entry);
entrada.setPath((path.equals("")) ? entry.getName() : path + "/" + entry.getName());
resultado.add(entrada);
}
Collections.sort(resultado, new Comparator<SVNEntrada>() {
public int compare(SVNEntrada entrada1, SVNEntrada entrada2) {