<BUG>SVNURL url = SVNURL.parseURIEncoded(l.remote);
</BUG>
listener.getLogger().println("Checking out "+url);
svnuc.setEventHandler(new SubversionUpdateEventHandler(listener, externals, l.local));
svnuc.doCheckout(url, new File(ws, l.local).getCanonicalFile(), SVNRevision.HEAD, revision, true);
<BUG>} catch (SVNException e) {
</BUG>
e.printStackTrace(listener.error("Failed to check out "+l.remote));
return null;
}

return null;
}
}
} else {
Util.deleteContentsRecursive(ws);
for (final ModuleLocation l : locations) {
try {
final SVNURL url = SVNURL.parseURIEncoded(l.remote);
listener.getLogger().println("Checking out "+url);
svnuc.setEventHandler(new SubversionUpdateEventHandler(listener, externals, l.local));
svnuc.doCheckout(url, new File(ws, l.local).getCanonicalFile(), SVNRevision.HEAD, revision, true);
} catch (final SVNException e) {
e.printStackTrace(listener.error("Failed to check out "+l.remote));
return null;
