run(out, err);
}
public void handleAdminEvent(SVNAdminEvent event, double progress) throws SVNException {
if (event != null && event.getAction() == SVNAdminEventAction.LOCK_LISTED) {
SVNLock lock = event.getLock();
if (lock != null) {
String creationDate = SVNTimeUtil.formatDate(lock.getCreationDate());
String expirationDate = lock.getExpirationDate() != null ? SVNTimeUtil.formatDate(lock.getExpirationDate()) : "";
int commentLines = 0;
if (lock.getComment() != null) {
commentLines = getLinesCount(lock.getComment());
}
SVNCommand.println(myOut, "Path: " + lock.getPath());
SVNCommand.println(myOut, "UUID Token: " + lock.getID());
SVNCommand.println(myOut, "Owner: " + lock.getOwner());
SVNCommand.println(myOut, "Created: " + creationDate);
SVNCommand.println(myOut, "Expires: " + expirationDate);
if (commentLines != 1) {
SVNCommand.println(myOut, "Comment (" + commentLines + " lines):");
SVNCommand.println(myOut, lock.getComment() != null ? lock.getComment() : "");
} else {
SVNCommand.println(myOut, "Comment (" + commentLines + " line):");
SVNCommand.println(myOut, lock.getComment() != null ? lock.getComment() : "");
}
SVNCommand.println(myOut, "");
}
}
}