SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.CL_INSUFFICIENT_ARGS,
"Missing repository path argument");
SVNErrorManager.error(err, SVNLogType.CLIENT);
}
SVNLookClient client = environment.getClientManager().getLookClient();
SVNProperties props = null;
if (environment.isRevision()) {
if (environment.isRevProp()) {
props = client.doGetRevisionProperties(environment.getRepositoryFile(),
getRevisionObject());
} else {
props = client.doGetProperties(environment.getRepositoryFile(), environment.getFirstArgument(),
getRevisionObject());
}
} else {
if (environment.isRevProp()) {
props = client.doGetRevisionProperties(environment.getRepositoryFile(),
environment.getTransaction());
} else {
props = client.doGetProperties(environment.getRepositoryFile(), environment.getFirstArgument(),
environment.getTransaction());
}
}
if (props != null) {
for (Iterator propNamesIter = props.nameSet().iterator(); propNamesIter.hasNext();) {
String propName = (String) propNamesIter.next();
SVNPropertyData propData = new SVNPropertyData(propName, props.getSVNPropertyValue(propName),
client.getOptions());
SVNPropertyValue propValue = propData.getValue();
if (environment.isVerbose()) {
environment.getOut().print(" " + propName + " : ");
if (propValue.isString()) {
environment.getOut().println(propValue.getString());