public long doExport(String srcPath, String destPath, Revision revision, Revision pegRevision, boolean force, boolean ignoreExternals, boolean recurse, String nativeEOL) throws ClientException { SVNUpdateClient updater = getSVNUpdateClient(); boolean oldIgnore = updater.isIgnoreExternals(); updater.setIgnoreExternals(ignoreExternals); try { if(isURL(srcPath)){ return updater.doExport(SVNURL.parseURIEncoded(srcPath), new File(destPath).getAbsoluteFile(), JavaHLObjectFactory.getSVNRevision(pegRevision), JavaHLObjectFactory.getSVNRevision(revision), nativeEOL, force, recurse); } return updater.doExport(new File(srcPath).getAbsoluteFile(), new File(destPath).getAbsoluteFile(), JavaHLObjectFactory.getSVNRevision(pegRevision), JavaHLObjectFactory.getSVNRevision(revision), nativeEOL, force, recurse); } catch (SVNException e) { throwException(e); } finally { updater.setIgnoreExternals(oldIgnore); } return -1; }
public long checkout(String moduleName, String destPath, Revision revision, Revision pegRevision, boolean recurse, boolean ignoreExternals) throws ClientException { SVNUpdateClient updater = getSVNUpdateClient(); boolean oldIgnoreExternals = updater.isIgnoreExternals(); updater.setIgnoreExternals(ignoreExternals); try { File path = new File(destPath).getAbsoluteFile(); return updater.doCheckout(SVNURL.parseURIEncoded(moduleName), path, JavaHLObjectFactory.getSVNRevision(pegRevision), JavaHLObjectFactory.getSVNRevision(revision), recurse); } catch (SVNException e) { throwException(e); } finally { updater.setIgnoreExternals(oldIgnoreExternals); } return -1; }
public long doExport(String srcPath, String destPath, Revision revision, Revision pegRevision, boolean force, boolean ignoreExternals, int depth, String nativeEOL) throws ClientException { SVNUpdateClient updater = getSVNUpdateClient(); boolean oldIgnore = updater.isIgnoreExternals(); updater.setIgnoreExternals(ignoreExternals); try { if (isURL(srcPath)) { return updater.doExport(SVNURL.parseURIEncoded(srcPath), new File(destPath).getAbsoluteFile(), JavaHLObjectFactory.getSVNRevision(pegRevision), JavaHLObjectFactory.getSVNRevision(revision), nativeEOL, force, JavaHLObjectFactory.getSVNDepth(depth)); } return updater.doExport(new File(srcPath).getAbsoluteFile(), new File(destPath).getAbsoluteFile(), JavaHLObjectFactory.getSVNRevision(pegRevision), JavaHLObjectFactory.getSVNRevision(revision), nativeEOL, force, JavaHLObjectFactory.getSVNDepth(depth)); } catch (SVNException e) { throwException(e); } finally { updater.setIgnoreExternals(oldIgnore); resetLog(); } return -1; }
public long doExport(String srcPath, String destPath, Revision revision, Revision pegRevision, boolean force, boolean ignoreExternals, int depth, String nativeEOL) throws ClientException { SVNUpdateClient updater = getSVNUpdateClient(); boolean oldIgnore = updater.isIgnoreExternals(); updater.setIgnoreExternals(ignoreExternals); try { if (isURL(srcPath)) { return updater.doExport(SVNURL.parseURIEncoded(srcPath), new File(destPath).getAbsoluteFile(), JavaHLObjectFactory.getSVNRevision(pegRevision), JavaHLObjectFactory.getSVNRevision(revision), nativeEOL, force, JavaHLObjectFactory.getSVNDepth(depth)); } return updater.doExport(new File(srcPath).getAbsoluteFile(), new File(destPath).getAbsoluteFile(), JavaHLObjectFactory.getSVNRevision(pegRevision), JavaHLObjectFactory.getSVNRevision(revision), nativeEOL, force, JavaHLObjectFactory.getSVNDepth(depth)); } catch (SVNException e) { throwException(e); } finally { updater.setIgnoreExternals(oldIgnore); resetLog(); } return -1; }
public long doExport(String srcPath, String destPath, Revision revision, Revision pegRevision, boolean force, boolean ignoreExternals, int depth, String nativeEOL) throws ClientException { SVNUpdateClient updater = getSVNUpdateClient(); boolean oldIgnore = updater.isIgnoreExternals(); updater.setIgnoreExternals(ignoreExternals); try { if (isURL(srcPath)) { return updater.doExport(SVNURL.parseURIEncoded(srcPath), new File(destPath).getAbsoluteFile(), JavaHLObjectFactory.getSVNRevision(pegRevision), JavaHLObjectFactory.getSVNRevision(revision), nativeEOL, force, JavaHLObjectFactory.getSVNDepth(depth)); } return updater.doExport(new File(srcPath).getAbsoluteFile(), new File(destPath).getAbsoluteFile(), JavaHLObjectFactory.getSVNRevision(pegRevision), JavaHLObjectFactory.getSVNRevision(revision), nativeEOL, force, JavaHLObjectFactory.getSVNDepth(depth)); } catch (SVNException e) { throwException(e); } finally { updater.setIgnoreExternals(oldIgnore); resetLog(); } return -1; }
public long checkout(String moduleName, String destPath, Revision revision, Revision pegRevision, int depth, boolean ignoreExternals, boolean allowUnverObstructions) throws ClientException { SVNUpdateClient updater = getSVNUpdateClient(); boolean oldIgnoreExternals = updater.isIgnoreExternals(); updater.setIgnoreExternals(ignoreExternals); try { File path = new File(destPath).getAbsoluteFile(); return updater.doCheckout(SVNURL.parseURIEncoded(moduleName), path, JavaHLObjectFactory.getSVNRevision(pegRevision), JavaHLObjectFactory.getSVNRevision(revision), JavaHLObjectFactory.getSVNDepth(depth), allowUnverObstructions); } catch (SVNException e) { throwException(e); } finally { updater.setIgnoreExternals(oldIgnoreExternals); resetLog(); } return -1; }
public long checkout(String moduleName, String destPath, Revision revision, Revision pegRevision, int depth, boolean ignoreExternals, boolean allowUnverObstructions) throws ClientException { SVNUpdateClient updater = getSVNUpdateClient(); boolean oldIgnoreExternals = updater.isIgnoreExternals(); updater.setIgnoreExternals(ignoreExternals); try { File path = new File(destPath).getAbsoluteFile(); return updater.doCheckout(SVNURL.parseURIEncoded(moduleName), path, JavaHLObjectFactory.getSVNRevision(pegRevision), JavaHLObjectFactory.getSVNRevision(revision), JavaHLObjectFactory.getSVNDepth(depth), allowUnverObstructions); } catch (SVNException e) { throwException(e); } finally { updater.setIgnoreExternals(oldIgnoreExternals); resetLog(); } return -1; }
public long checkout(String moduleName, String destPath, Revision revision, Revision pegRevision, int depth, boolean ignoreExternals, boolean allowUnverObstructions) throws ClientException { SVNUpdateClient updater = getSVNUpdateClient(); boolean oldIgnoreExternals = updater.isIgnoreExternals(); updater.setIgnoreExternals(ignoreExternals); try { File path = new File(destPath).getAbsoluteFile(); return updater.doCheckout(SVNURL.parseURIEncoded(moduleName), path, JavaHLObjectFactory.getSVNRevision(pegRevision), JavaHLObjectFactory.getSVNRevision(revision), JavaHLObjectFactory.getSVNDepth(depth), allowUnverObstructions); } catch (SVNException e) { throwException(e); } finally { updater.setIgnoreExternals(oldIgnoreExternals); resetLog(); } return -1; }
if (recursive && !isIgnoreExternals()) { for(Iterator externals = adminAreaInfo.getNewExternals().keySet().iterator(); externals.hasNext();) { String path = (String) externals.next();
if (recursive && !isIgnoreExternals()) { for(Iterator externals = adminAreaInfo.getNewExternals().keySet().iterator(); externals.hasNext();) { String path = (String) externals.next();
public long[] update(String[] path, Revision revision, int depth, boolean depthIsSticky, boolean ignoreExternals, boolean allowUnverObstructions) throws ClientException { if (path == null || path.length == 0) { return new long[]{}; } long[] updated = new long[path.length]; SVNUpdateClient updater = getSVNUpdateClient(); boolean oldIgnore = updater.isIgnoreExternals(); updater.setIgnoreExternals(ignoreExternals); updater.setEventPathPrefix(""); SVNDepth svnDepth = JavaHLObjectFactory.getSVNDepth(depth); SVNRevision rev = JavaHLObjectFactory.getSVNRevision(revision); try { for (int i = 0; i < updated.length; i++) { updated[i] = updater.doUpdate(new File(path[i]).getAbsoluteFile(), rev, svnDepth, allowUnverObstructions, depthIsSticky); } } catch (SVNException e) { throwException(e); } finally { updater.setIgnoreExternals(oldIgnore); updater.setEventPathPrefix(null); resetLog(); SVNFileUtil.sleepForTimestamp(); } return updated; }
public long[] update(String[] path, Revision revision, int depth, boolean depthIsSticky, boolean ignoreExternals, boolean allowUnverObstructions) throws ClientException { if (path == null || path.length == 0) { return new long[]{}; } long[] updated = new long[path.length]; SVNUpdateClient updater = getSVNUpdateClient(); boolean oldIgnore = updater.isIgnoreExternals(); updater.setIgnoreExternals(ignoreExternals); updater.setEventPathPrefix(""); SVNDepth svnDepth = JavaHLObjectFactory.getSVNDepth(depth); SVNRevision rev = JavaHLObjectFactory.getSVNRevision(revision); try { for (int i = 0; i < updated.length; i++) { updated[i] = updater.doUpdate(new File(path[i]).getAbsoluteFile(), rev, svnDepth, allowUnverObstructions, depthIsSticky); } } catch (SVNException e) { throwException(e); } finally { updater.setIgnoreExternals(oldIgnore); updater.setEventPathPrefix(null); resetLog(); SVNFileUtil.sleepForTimestamp(); } return updated; }
public long[] update(String[] path, Revision revision, int depth, boolean depthIsSticky, boolean ignoreExternals, boolean allowUnverObstructions) throws ClientException { if (path == null || path.length == 0) { return new long[]{}; } long[] updated = new long[path.length]; SVNUpdateClient updater = getSVNUpdateClient(); boolean oldIgnore = updater.isIgnoreExternals(); updater.setIgnoreExternals(ignoreExternals); updater.setEventPathPrefix(""); SVNDepth svnDepth = JavaHLObjectFactory.getSVNDepth(depth); SVNRevision rev = JavaHLObjectFactory.getSVNRevision(revision); try { for (int i = 0; i < updated.length; i++) { updated[i] = updater.doUpdate(new File(path[i]).getAbsoluteFile(), rev, svnDepth, allowUnverObstructions, depthIsSticky); } } catch (SVNException e) { throwException(e); } finally { updater.setIgnoreExternals(oldIgnore); updater.setEventPathPrefix(null); resetLog(); SVNFileUtil.sleepForTimestamp(); } return updated; }
public long[] update(String[] path, Revision revision, boolean recurse, boolean ignoreExternals) throws ClientException { if(path == null || path.length == 0){ return new long[]{}; } long[] updated = new long[path.length]; SVNUpdateClient updater = getSVNUpdateClient(); boolean oldIgnore = updater.isIgnoreExternals(); updater.setIgnoreExternals(ignoreExternals); updater.setEventPathPrefix(""); try { for (int i = 0; i < updated.length; i++) { updated[i] = update(path[i], revision, recurse); } } finally { updater.setIgnoreExternals(oldIgnore); updater.setEventPathPrefix(null); SVNFileUtil.sleepForTimestamp(); } return updated; }
/** * Canonicalizes all urls in the specified Working Copy. * * @param dst * a WC path * @param omitDefaultPort * if <span class="javakeyword">true</span> then removes all port * numbers from urls which equal to default ones, otherwise does * not * @param recursive * recurses an operation * @throws SVNException */ public void doCanonicalizeURLs(File dst, boolean omitDefaultPort, boolean recursive) throws SVNException { SvnCanonicalizeUrls cu = getOperationsFactory().createCanonicalizeUrls(); cu.setSingleTarget(SvnTarget.fromFile(dst)); cu.setDepth(recursive ? SVNDepth.INFINITY : SVNDepth.IMMEDIATES); cu.setOmitDefaultPort(omitDefaultPort); cu.setIgnoreExternals(isIgnoreExternals()); cu.run(); }
if (recursive && !isIgnoreExternals()) { for(Iterator externals = adminAreaInfo.externals(); externals.hasNext();) { SVNExternalInfo info = (SVNExternalInfo) externals.next();
public long[] doUpdate(File[] paths, SVNRevision revision, SVNDepth depth, boolean allowUnversionedObstructions, boolean depthIsSticky, boolean makeParents) throws SVNException { if (paths == null || paths.length == 0) { return new long[0]; } SvnUpdate up = getOperationsFactory().createUpdate(); up.setUpdateLocksOnDemand(isUpdateLocksOnDemand()); for (int i = 0; i < paths.length; i++) { up.addTarget(SvnTarget.fromFile(paths[i])); } up.setRevision(revision); up.setDepth(depth); up.setDepthIsSticky(depthIsSticky); up.setAllowUnversionedObstructions(allowUnversionedObstructions); up.setIgnoreExternals(isIgnoreExternals()); up.setMakeParents(makeParents); up.setExternalsHandler(SvnCodec.externalsHandler(getExternalsHandler())); return up.run(); }
public long doSwitch(File path, SVNURL url, SVNRevision pegRevision, SVNRevision revision, SVNDepth depth, boolean allowUnversionedObstructions, boolean depthIsSticky, boolean ignoreAncestry) throws SVNException { SvnSwitch sw = getOperationsFactory().createSwitch(); sw.setUpdateLocksOnDemand(isUpdateLocksOnDemand()); sw.setSwitchTarget(SvnTarget.fromURL(url, pegRevision)); sw.setSingleTarget(SvnTarget.fromFile(path)); sw.setRevision(revision); sw.setDepth(depth); sw.setDepthIsSticky(depthIsSticky); sw.setAllowUnversionedObstructions(allowUnversionedObstructions); sw.setIgnoreAncestry(ignoreAncestry); sw.setIgnoreExternals(isIgnoreExternals()); sw.setExternalsHandler(SvnCodec.externalsHandler(getExternalsHandler())); return sw.run(); }
if (!isIgnoreExternals()) { String externalsValue = adminArea.getProperties(adminArea.getThisDirName()).getPropertyValue(SVNProperty.EXTERNALS); adminAreaInfo.addExternals(adminArea, externalsValue);
if (!isIgnoreExternals()) { SVNPropertyValue externalsValue = adminArea.getProperties(adminArea.getThisDirName()).getPropertyValue(SVNProperty.EXTERNALS); if (externalsValue != null) {