svnuc.setIgnoreExternals(l.isIgnoreExternalsOption()); svnuc.setEventHandler( new SubversionUpdateEventHandler(new PrintStream(pos), externals, local, l.getLocalDir())); svnuc.doCheckout(l.getSVNURL(), local.getCanonicalFile(), SVNRevision.HEAD, revision, svnDepth, true);
String path = null; try { path = getRelativePath(file); } catch (IOException e) { throw new SVNException(SVNErrorMessage.create(SVNErrorCode.FS_GENERAL), e); path = getLocalPath(path);
if (file != null) { try { path = getRelativePath(file); } catch (IOException e) { throw new SVNException(SVNErrorMessage.create(SVNErrorCode.FS_GENERAL), e); path = getLocalPath(path);
try { File local = new File(ws, l.getLocalDir()); svnuc.setEventHandler(new SubversionUpdateEventHandler(listener.getLogger(), externals, local, l.getLocalDir()));
@Override public void handleEvent(SVNEvent event, double progress) throws SVNException { SVNEventAction action = event.getAction(); if (action == SVNEventAction.UPDATE_EXTERNAL || action == SVNEventAction.UPDATE_COMPLETED) { File file = event.getFile(); SVNExternalDetails details = externalDetails.remove(file); if (details != null) { String path; try { path = getLocalPath(getRelativePath(file)); } catch (IOException e) { throw new SVNException(new RemotableSVNErrorMessage(SVNErrorCode.FS_GENERAL, e)); } out.println(Messages.SubversionUpdateEventHandler_FetchExternal(details.getUrl(), event.getRevision(), file)); externals.add(new External(modulePath + '/' + path, details.getUrl(), details.getRevision())); } } else if (action == SVNEventAction.FAILED_EXTERNAL) { File file = event.getFile(); SVNExternalDetails details = externalDetails.get(file); if (details != null) { out.println(Messages.SubversionUpdateEventHandler_FetchExternal(details.getUrl(), event.getRevision(), file) + " failed!"); } if (cancelProcessOnExternalsFailed) { throw new SVNException(new RemotableSVNErrorMessage(SVNErrorCode.CL_ERROR_PROCESSING_EXTERNALS, SVNErrorCode.CL_ERROR_PROCESSING_EXTERNALS.getDescription() + ": <" + file.getName() + ">")); } } super.handleEvent(event, progress); }
try { File local = new File(ws, l.getLocalDir()); SubversionUpdateEventHandler handler = new SubversionUpdateEventHandler(listener.getLogger(), externals, local, l.getLocalDir()); svnuc.setEventHandler(handler); svnuc.setExternalsHandler(handler);
try { File local = new File(ws, l.getLocalDir()); SubversionUpdateEventHandler handler = new SubversionUpdateEventHandler(listener.getLogger(), externals, local, l.getLocalDir()); svnuc.setEventHandler(handler); svnuc.setExternalsHandler(handler);
SubversionUpdateEventHandler eventHandler = new SubversionUpdateEventHandler( listener.getLogger(), externals, local, location.getLocalDir(), quietOperation, location.isCancelProcessOnExternalsFail());
SubversionUpdateEventHandler eventHandler = new SubversionUpdateEventHandler( new PrintStream(pos), externals, local, location.getLocalDir(), quietOperation, location.isCancelProcessOnExternalsFail());
svnuc.setIgnoreExternals(l.isIgnoreExternalsOption()); SubversionUpdateEventHandler handler = new SubversionUpdateEventHandler(new PrintStream(pos), externals, local, l.getLocalDir()); svnuc.setEventHandler(handler); svnuc.setExternalsHandler(handler);