SVNRevision revision) throws SVNException { final SVNPropertyData[] data = new SVNPropertyData[1]; doGetProperty(path, propName, pegRevision, revision, SVNDepth.EMPTY, new ISVNPropertyHandler() { public void handleProperty(File file, SVNPropertyData property) { if (data[0] == null && path.equals(file)) {
throws SVNException { final SVNPropertyData[] data = new SVNPropertyData[1]; doGetProperty(url, propName, pegRevision, revision, recursive, new ISVNPropertyHandler() { public void handleProperty(File file, SVNPropertyData property) {
SVNRevision revision) throws SVNException { final SVNPropertyData[] data = new SVNPropertyData[1]; doGetProperty(path, propName, pegRevision, revision, SVNDepth.EMPTY, new ISVNPropertyHandler() { public void handleProperty(File file, SVNPropertyData property) { if (data[0] == null && path.equals(file)) {
SVNRevision revision) throws SVNException { final SVNPropertyData[] data = new SVNPropertyData[1]; doGetProperty(url, propName, pegRevision, revision, SVNDepth.EMPTY, new ISVNPropertyHandler() { public void handleProperty(File file, SVNPropertyData property) {
SVNRevision revision) throws SVNException { final SVNPropertyData[] data = new SVNPropertyData[1]; doGetProperty(url, propName, pegRevision, revision, SVNDepth.EMPTY, new ISVNPropertyHandler() { public void handleProperty(File file, SVNPropertyData property) {
/** * Gets an item's versioned property from a repository and passes it to * a provided property handler. This method is useful when having no * Working Copy at all. * * @param url an item's repository location * @param propName an item's property name; if it's * <span class="javakeyword">null</span> then * all the item's properties will be retrieved * and passed to <code>handler</code> for * processing * @param pegRevision a revision in which the item is first looked up * @param revision a target revision * @param recursive <span class="javakeyword">true</span> to * descend recursively * @param handler a caller's property handler * @throws SVNException if <code>propName</code> starts * with the {@link org.tmatesoft.svn.core.SVNProperty#SVN_WC_PREFIX * svn:wc:} prefix * @deprecated use {@link #doGetProperty(SVNURL, String, SVNRevision, SVNRevision, SVNDepth, ISVNPropertyHandler)} instead */ public void doGetProperty(SVNURL url, String propName, SVNRevision pegRevision, SVNRevision revision, boolean recursive, ISVNPropertyHandler handler) throws SVNException { doGetProperty(url, propName, pegRevision, revision, SVNDepth.getInfinityOrEmptyDepth(recursive), handler); }
/** * Gets an item's versioned property from a repository and passes it to * a provided property handler. This method is useful when having no * Working Copy at all. * * @param url an item's repository location * @param propName an item's property name; if it's * <span class="javakeyword">null</span> then * all the item's properties will be retrieved * and passed to <code>handler</code> for * processing * @param pegRevision a revision in which the item is first looked up * @param revision a target revision * @param recursive <span class="javakeyword">true</span> to * descend recursively * @param handler a caller's property handler * @throws SVNException if <code>propName</code> starts * with the {@link org.tmatesoft.svn.core.SVNProperty#SVN_WC_PREFIX * svn:wc:} prefix * @deprecated use {@link #doGetProperty(SVNURL, String, SVNRevision, SVNRevision, SVNDepth, ISVNPropertyHandler)} instead */ public void doGetProperty(SVNURL url, String propName, SVNRevision pegRevision, SVNRevision revision, boolean recursive, ISVNPropertyHandler handler) throws SVNException { doGetProperty(url, propName, pegRevision, revision, SVNDepth.getInfinityOrEmptyDepth(recursive), handler); }
doGetProperty(url, propName, pegRevision, revision, SVNDepth.getInfinityOrEmptyDepth(recursive), handler);
doGetProperty(path, propName, pegRevision, revision, SVNDepth.getInfinityOrEmptyDepth(recursive), handler, null);
doGetProperty(path, propName, pegRevision, revision, SVNDepth.getInfinityOrEmptyDepth(recursive), handler, null);
doGetProperty(path, propName, pegRevision, revision, SVNDepth.getInfinityOrEmptyDepth(recursive), handler, null);
public PropertyData propertyGet(String path, String name, Revision revision, Revision pegRevision) throws ClientException { if(name == null || name.equals("")){ return null; } SVNWCClient client = getSVNWCClient(); SVNRevision svnRevision = JavaHLObjectFactory.getSVNRevision(revision); SVNRevision svnPegRevision = JavaHLObjectFactory.getSVNRevision(pegRevision); JavaHLPropertyHandler retriever = new JavaHLPropertyHandler(myOwner); try { if(isURL(path)){ client.doGetProperty(SVNURL.parseURIEncoded(path), name, svnPegRevision, svnRevision, false, retriever); }else{ client.doGetProperty(new File(path).getAbsoluteFile(), name, svnPegRevision, svnRevision, false, retriever); } } catch (SVNException e) { throwException(e); } return retriever.getPropertyData(); }
public PropertyData[] properties(String path, Revision revision, Revision pegRevision) throws ClientException { if(path == null){ return null; } SVNWCClient client = getSVNWCClient(); SVNRevision svnRevision = JavaHLObjectFactory.getSVNRevision(revision); SVNRevision svnPegRevision = JavaHLObjectFactory.getSVNRevision(pegRevision); JavaHLPropertyHandler propHandler = new JavaHLPropertyHandler(myOwner); try { if(isURL(path)){ client.doGetProperty(SVNURL.parseURIEncoded(path), null, svnPegRevision, svnRevision, false, propHandler); }else{ client.doGetProperty(new File(path).getAbsoluteFile(), null, svnPegRevision, svnRevision, false, propHandler); } } catch (SVNException e) { throwException(e); } return propHandler.getAllPropertyData(); }
public PropertyData propertyGet(String path, String name, Revision revision, Revision pegRevision) throws ClientException { if (name == null || name.equals("")) { return null; } SVNWCClient client = getSVNWCClient(); SVNRevision svnRevision = JavaHLObjectFactory.getSVNRevision(revision); SVNRevision svnPegRevision = JavaHLObjectFactory.getSVNRevision(pegRevision); JavaHLPropertyHandler retriever = new JavaHLPropertyHandler(myOwner); try { if (isURL(path)) { client.doGetProperty(SVNURL.parseURIEncoded(path), name, svnPegRevision, svnRevision, SVNDepth.EMPTY, retriever); } else { client.doGetProperty(new File(path).getAbsoluteFile(), name, svnPegRevision, svnRevision, SVNDepth.EMPTY, retriever, null); } } catch (SVNException e) { throwException(e); } finally { resetLog(); } return retriever.getPropertyData(); }
public PropertyData propertyGet(String path, String name, Revision revision, Revision pegRevision) throws ClientException { if (name == null || name.equals("")) { return null; } SVNWCClient client = getSVNWCClient(); SVNRevision svnRevision = JavaHLObjectFactory.getSVNRevision(revision); SVNRevision svnPegRevision = JavaHLObjectFactory.getSVNRevision(pegRevision); JavaHLPropertyHandler retriever = new JavaHLPropertyHandler(myOwner); try { if (isURL(path)) { client.doGetProperty(SVNURL.parseURIEncoded(path), name, svnPegRevision, svnRevision, SVNDepth.EMPTY, retriever); } else { client.doGetProperty(new File(path).getAbsoluteFile(), name, svnPegRevision, svnRevision, SVNDepth.EMPTY, retriever, null); } } catch (SVNException e) { throwException(e); } finally { resetLog(); } return retriever.getPropertyData(); }
public PropertyData propertyGet(String path, String name, Revision revision, Revision pegRevision) throws ClientException { if (name == null || name.equals("")) { return null; } SVNWCClient client = getSVNWCClient(); SVNRevision svnRevision = JavaHLObjectFactory.getSVNRevision(revision); SVNRevision svnPegRevision = JavaHLObjectFactory.getSVNRevision(pegRevision); JavaHLPropertyHandler retriever = new JavaHLPropertyHandler(myOwner); try { if (isURL(path)) { client.doGetProperty(SVNURL.parseURIEncoded(path), name, svnPegRevision, svnRevision, SVNDepth.EMPTY, retriever); } else { client.doGetProperty(new File(path).getAbsoluteFile(), name, svnPegRevision, svnRevision, SVNDepth.EMPTY, retriever, null); } } catch (SVNException e) { throwException(e); } finally { resetLog(); } return retriever.getPropertyData(); }
/** * Get connection state. * * @return true if server is connected */ @Override public boolean isConnected() { if (connectionState == ConnectionState.NOT_TESTED) { try { SVNURL url = getRemoteURL(); getSVNManager().getWCClient().doGetProperty(url, "", SVNRevision.HEAD, SVNRevision.HEAD); connectionState = ConnectionState.ON_LINE; if (log.isInfoEnabled()) { log.info(t("isisfish.vcs.vcssvn.isconnected.switchto", getRemoteRepository())); } } catch (SVNException eee) { if (log.isWarnEnabled()) { log.warn(t("isisfish.vcs.vcssvn.isconnected.switchoff", getRemoteRepository()), eee); } connectionState = ConnectionState.OFF_LINE; } } boolean result = connectionState == ConnectionState.ON_LINE; return result; }
private PropertyData[] properties(String path, Revision revision, Revision pegRevision, SVNDepth depth, String[] changelists) throws ClientException { if (path == null) { return null; } SVNWCClient client = getSVNWCClient(); SVNRevision svnRevision = JavaHLObjectFactory.getSVNRevision(revision); SVNRevision svnPegRevision = JavaHLObjectFactory.getSVNRevision(pegRevision); JavaHLPropertyHandler propHandler = new JavaHLPropertyHandler(myOwner); try { if (isURL(path)) { client.doGetProperty(SVNURL.parseURIEncoded(path), null, svnPegRevision, svnRevision, depth, propHandler); } else { client.doGetProperty(new File(path).getAbsoluteFile(), null, svnPegRevision, svnRevision, depth, propHandler, JavaHLObjectFactory.getChangeListsCollection(changelists)); } } catch (SVNException e) { throwException(e); } finally { resetLog(); } return propHandler.getAllPropertyData(); }
private PropertyData[] properties(String path, Revision revision, Revision pegRevision, SVNDepth depth, String[] changelists) throws ClientException { if (path == null) { return null; } SVNWCClient client = getSVNWCClient(); SVNRevision svnRevision = JavaHLObjectFactory.getSVNRevision(revision); SVNRevision svnPegRevision = JavaHLObjectFactory.getSVNRevision(pegRevision); JavaHLPropertyHandler propHandler = new JavaHLPropertyHandler(myOwner); try { if (isURL(path)) { client.doGetProperty(SVNURL.parseURIEncoded(path), null, svnPegRevision, svnRevision, depth, propHandler); } else { client.doGetProperty(new File(path).getAbsoluteFile(), null, svnPegRevision, svnRevision, depth, propHandler, JavaHLObjectFactory.getChangeListsCollection(changelists)); } } catch (SVNException e) { throwException(e); } finally { resetLog(); } return propHandler.getAllPropertyData(); }
private PropertyData[] properties(String path, Revision revision, Revision pegRevision, SVNDepth depth, String[] changelists) throws ClientException { if (path == null) { return null; } SVNWCClient client = getSVNWCClient(); SVNRevision svnRevision = JavaHLObjectFactory.getSVNRevision(revision); SVNRevision svnPegRevision = JavaHLObjectFactory.getSVNRevision(pegRevision); JavaHLPropertyHandler propHandler = new JavaHLPropertyHandler(myOwner); try { if (isURL(path)) { client.doGetProperty(SVNURL.parseURIEncoded(path), null, svnPegRevision, svnRevision, depth, propHandler); } else { client.doGetProperty(new File(path).getAbsoluteFile(), null, svnPegRevision, svnRevision, depth, propHandler, JavaHLObjectFactory.getChangeListsCollection(changelists)); } } catch (SVNException e) { throwException(e); } finally { resetLog(); } return propHandler.getAllPropertyData(); }