public void setRevProperty(String path, String name, Revision rev, String value, boolean force) throws ClientException { if(name == null || name.equals("")){ return; } SVNWCClient client = getSVNWCClient(); SVNRevision svnRevision = JavaHLObjectFactory.getSVNRevision(rev); try { if(isURL(path)){ client.doSetRevisionProperty(SVNURL.parseURIEncoded(path), svnRevision, name, value, force, ISVNPropertyHandler.NULL); }else{ client.doSetRevisionProperty(new File(path).getAbsoluteFile(), svnRevision, name, value, force, ISVNPropertyHandler.NULL); } } catch (SVNException e) { throwException(e); } }
public void setRevProperty(String path, String name, Revision rev, String value, boolean force) throws ClientException { if (name == null || name.equals("")) { return; } SVNWCClient client = getSVNWCClient(); SVNRevision svnRevision = JavaHLObjectFactory.getSVNRevision(rev); SVNPropertyValue propertyValue = SVNPropertyValue.create(value); try { if (isURL(path)) { client.doSetRevisionProperty(SVNURL.parseURIEncoded(path), svnRevision, name, propertyValue, force, ISVNPropertyHandler.NULL); } else { client.doSetRevisionProperty(new File(path).getAbsoluteFile(), svnRevision, name, propertyValue, force, ISVNPropertyHandler.NULL); } } catch (SVNException e) { throwException(e); } finally { resetLog(); } }
public void setRevProperty(String path, String name, Revision rev, String value, boolean force) throws ClientException { if (name == null || name.equals("")) { return; } SVNWCClient client = getSVNWCClient(); SVNRevision svnRevision = JavaHLObjectFactory.getSVNRevision(rev); SVNPropertyValue propertyValue = SVNPropertyValue.create(value); try { if (isURL(path)) { client.doSetRevisionProperty(SVNURL.parseURIEncoded(path), svnRevision, name, propertyValue, force, ISVNPropertyHandler.NULL); } else { client.doSetRevisionProperty(new File(path).getAbsoluteFile(), svnRevision, name, propertyValue, force, ISVNPropertyHandler.NULL); } } catch (SVNException e) { throwException(e); } finally { resetLog(); } }
public void setRevProperty(String path, String name, Revision rev, String value, boolean force) throws ClientException { if (name == null || name.equals("")) { return; } SVNWCClient client = getSVNWCClient(); SVNRevision svnRevision = JavaHLObjectFactory.getSVNRevision(rev); SVNPropertyValue propertyValue = SVNPropertyValue.create(value); try { if (isURL(path)) { client.doSetRevisionProperty(SVNURL.parseURIEncoded(path), svnRevision, name, propertyValue, force, ISVNPropertyHandler.NULL); } else { client.doSetRevisionProperty(new File(path).getAbsoluteFile(), svnRevision, name, propertyValue, force, ISVNPropertyHandler.NULL); } } catch (SVNException e) { throwException(e); } finally { resetLog(); } }
propValue = validatePropertyValue(propName, propValue, force); SVNURL url = getURL(path); doSetRevisionProperty(url, revision, propName, propValue, force, handler);
doSetRevisionProperty(url, revision, propName, propValue, force, handler);
doSetRevisionProperty(url, revision, propName, propValue, force, handler);
clearCollectedProperties(); if (revPropURL != null) { client.doSetRevisionProperty(revPropURL, SVNRevision.create(rev), propertyName, newPropertyValue, getSVNEnvironment().isForce(), this); } else if (targetPath != null) { client.doSetRevisionProperty(targetPath, SVNRevision.create(rev), propertyName, newPropertyValue, getSVNEnvironment().isForce(), this);
if (SVNCommandUtil.isURL(target)) { SVNURL url = SVNURL.parseURIEncoded(target); wcClient.doSetRevisionProperty(url, getSVNEnvironment().getStartRevision(), propertyName, null, getSVNEnvironment().isForce(), this); } else { File targetFile = new SVNPath(target).getFile(); wcClient.doSetRevisionProperty(targetFile, getSVNEnvironment().getStartRevision(), propertyName, null, getSVNEnvironment().isForce(), this);
clearCollectedProperties(); if (revPropURL != null) { client.doSetRevisionProperty(revPropURL, SVNRevision.create(rev), propertyName, newPropertyValue, getSVNEnvironment().isForce(), this); } else if (targetPath != null) { client.doSetRevisionProperty(targetPath, SVNRevision.create(rev), propertyName, newPropertyValue, getSVNEnvironment().isForce(), this);
if (SVNCommandUtil.isURL(target)) { SVNURL url = SVNURL.parseURIEncoded(target); wcClient.doSetRevisionProperty(url, getSVNEnvironment().getStartRevision(), propertyName, null, getSVNEnvironment().isForce(), this); } else { File targetFile = new SVNPath(target).getFile(); wcClient.doSetRevisionProperty(targetFile, getSVNEnvironment().getStartRevision(), propertyName, null, getSVNEnvironment().isForce(), this);
if (SVNCommandUtil.isURL(target)) { SVNURL revPropURL = SVNURL.parseURIEncoded(target); getSVNEnvironment().getClientManager().getWCClient().doSetRevisionProperty(revPropURL, getSVNEnvironment().getStartRevision(), propertyName, propertyValue, getSVNEnvironment().isForce(), this); } else { File targetFile = new SVNPath(target).getFile(); getSVNEnvironment().getClientManager().getWCClient().doSetRevisionProperty(targetFile, getSVNEnvironment().getStartRevision(), propertyName, propertyValue, getSVNEnvironment().isForce(), this);
if (SVNCommandUtil.isURL(target)) { SVNURL revPropURL = SVNURL.parseURIEncoded(target); getSVNEnvironment().getClientManager().getWCClient().doSetRevisionProperty(revPropURL, getSVNEnvironment().getStartRevision(), propertyName, propertyValue, getSVNEnvironment().isForce(), this); } else { File targetFile = new SVNPath(target).getFile(); getSVNEnvironment().getClientManager().getWCClient().doSetRevisionProperty(targetFile, getSVNEnvironment().getStartRevision(), propertyName, propertyValue, getSVNEnvironment().isForce(), this);