};
changelistClient.doGetChangeListPaths(changeLists, fileTargets, clDepth, handler);
targets = targetPaths;
}
SVNUpdateClient client = getSVNEnvironment().getClientManager().getUpdateClient();
if (!getSVNEnvironment().isQuiet()) {
client.setEventHandler(new SVNNotifyPrinter(getSVNEnvironment()));
}
SVNDepth depth = getSVNEnvironment().getDepth();
boolean depthIsSticky = false;
if (getSVNEnvironment().getSetDepth() != SVNDepth.UNKNOWN) {
depth = getSVNEnvironment().getSetDepth();
depthIsSticky = true;
}
List files = new ArrayList(targets.size());
for (Iterator ts = targets.iterator(); ts.hasNext();) {
String targetName = (String) ts.next();
SVNPath target = new SVNPath(targetName);
if (!target.isFile()) {
// skip it.
getSVNEnvironment().getOut().println("Skipped '" + targetName + "'");
continue;
}
files.add(target.getFile());
}
File[] filesArray = (File[]) files.toArray(new File[files.size()]);
client.doUpdate(filesArray, getSVNEnvironment().getStartRevision(), depth,
getSVNEnvironment().isForce(), depthIsSticky);
}