}
SVNDepth depth = getSVNEnvironment().getDepth();
if (depth == SVNDepth.UNKNOWN) {
depth = SVNDepth.INFINITY;
}
SVNCommitClient client = getSVNEnvironment().getClientManager().getCommitClient();
Collection filesList = new ArrayList();
for (Iterator ts = targets.iterator(); ts.hasNext();) {
String targetName = (String) ts.next();
SVNPath target = new SVNPath(targetName);
if (target.isFile()) {
filesList.add(target.getFile());
} else {
getSVNEnvironment().getOut().println("Skipped '" + targetName + "'");
}
}
if (filesList.isEmpty()) {
return;
}
File[] files = (File[]) filesList.toArray(new File[filesList.size()]);
if (!getSVNEnvironment().isQuiet()) {
client.setEventHandler(new SVNNotifyPrinter(getSVNEnvironment()));
}
client.setCommitHandler(getSVNEnvironment());
boolean keepLocks = getSVNEnvironment().getOptions().isKeepLocks();
SVNCommitInfo info = null;
try {
info = client.doCommit(files, keepLocks, getSVNEnvironment().getMessage(),
getSVNEnvironment().getRevisionProperties(),
getSVNEnvironment().getChangelists(),
getSVNEnvironment().isKeepChangelist(),
getSVNEnvironment().isForce(), depth);
} catch (SVNException svne) {