Java Code Examples for org.tigris.subversion.svnclientadapter.ISVNClientAdapter#propertyGet()
The following examples show how to use
org.tigris.subversion.svnclientadapter.ISVNClientAdapter#propertyGet() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: HistoryDialog.java From APICloud-Studio with GNU General Public License v3.0 | 6 votes |
private boolean tagsPropertySet(ISVNRemoteResource res) { ISVNClientAdapter client = null; try { client = SVNProviderPlugin.getPlugin().getSVNClient(); ISVNProperty property = null; SVNProviderPlugin.disableConsoleLogging(); property = client.propertyGet(res.getUrl(), "subclipse:tags"); //$NON-NLS-1$ SVNProviderPlugin.enableConsoleLogging(); if (property != null && property.getValue() != null) return true; } catch (Exception e) { SVNProviderPlugin.enableConsoleLogging(); } finally { SVNProviderPlugin.getPlugin().getSVNClientManager().returnSVNClient(client); } return false; }
Example 2
Source File: PropertyTestHidden.java From netbeans with Apache License 2.0 | 5 votes |
private void testPropertyGetFileNoProp(String filePath) throws Exception { createAndCommitParentFolders(filePath); File file = createFile(filePath); add(file); commit(file); ISVNClientAdapter c = getNbClient(); ISVNProperty p = c.propertyGet(file, "dil"); assertNull(p); p = c.propertyGet(getFileUrl(file), "dil"); assertNull(p); }
Example 3
Source File: PropertyTestHidden.java From netbeans with Apache License 2.0 | 5 votes |
private void assertProperty(ISVNClientAdapter c, File file, String prop, byte[] data) throws SVNClientException { ISVNProperty p = c.propertyGet(file, prop); assertNotNull(p); for (int i = 0; i < data.length; i++) { assertEquals(data[i], p.getData()[i]); } }
Example 4
Source File: SVNHistoryPage.java From APICloud-Studio with GNU General Public License v3.0 | 5 votes |
private boolean tagsPropertySet(ISVNRemoteResource resource) { ISVNClientAdapter client = null; try { client = SVNProviderPlugin.getPlugin().getSVNClient(); ISVNProperty property = null; SVNProviderPlugin.disableConsoleLogging(); property = client.propertyGet(resource.getUrl(), "subclipse:tags"); //$NON-NLS-1$ if (property != null && property.getValue() != null) { SVNProviderPlugin.enableConsoleLogging(); return true; } ISVNRemoteResource checkResource = resource; while (checkResource.getParent() != null) { checkResource = checkResource.getParent(); property = client.propertyGet(checkResource.getUrl(), "subclipse:tags"); //$NON-NLS-1$ if (property != null && property.getValue() != null) { SVNProviderPlugin.enableConsoleLogging(); return true; } } } catch (Exception e) { SVNProviderPlugin.enableConsoleLogging(); } finally { SVNProviderPlugin.getPlugin().getSVNClientManager().returnSVNClient(client); } return false; }
Example 5
Source File: LocalResource.java From APICloud-Studio with GNU General Public License v3.0 | 5 votes |
public ISVNProperty getSvnProperty(String name) throws SVNException { ISVNClientAdapter svnClient = null; try { svnClient = SVNProviderPlugin.getPlugin().getSVNClient(); SVNProviderPlugin.disableConsoleLogging(); ISVNProperty prop = svnClient.propertyGet(getFile(),name); return prop; } catch (SVNClientException e) { throw SVNException.wrapException(e); } finally { SVNProviderPlugin.enableConsoleLogging(); SVNProviderPlugin.getPlugin().getSVNClientManager().returnSVNClient(svnClient); } }
Example 6
Source File: PropertyTestHidden.java From netbeans with Apache License 2.0 | 4 votes |
private void assertProperty(ISVNClientAdapter c, File file, String prop, String val) throws SVNClientException { ISVNProperty p = c.propertyGet(file, prop); assertEquals(val, new String(p.getData())); }
Example 7
Source File: PropertyTestHidden.java From netbeans with Apache License 2.0 | 4 votes |
private void assertProperty(ISVNClientAdapter c, SVNUrl url, String prop, String val) throws SVNClientException { ISVNProperty p = c.propertyGet(url, prop); assertEquals(val, new String(p.getData())); }