public void unlock(String[] path, boolean force) throws ClientException { boolean allFiles = true; for (int i = 0; i < path.length; i++) { allFiles = allFiles && !isURL(path[i]); } try { if(allFiles){ File[] files = new File[path.length]; for (int i = 0; i < files.length; i++) { files[i] = new File(path[i]).getAbsoluteFile(); } getSVNWCClient().doUnlock(files, force); }else{ SVNURL[] urls = new SVNURL[path.length]; for (int i = 0; i < urls.length; i++) { urls[i] = SVNURL.parseURIEncoded(path[i]); } getSVNWCClient().doUnlock(urls, force); } } catch (SVNException e) { throwException(e); } }
public void unlock(String[] path, boolean force) throws ClientException { boolean allFiles = true; for (int i = 0; i < path.length; i++) { allFiles = allFiles && !isURL(path[i]); } try { if (allFiles) { File[] files = new File[path.length]; for (int i = 0; i < files.length; i++) { files[i] = new File(path[i]).getAbsoluteFile(); } getSVNWCClient().doUnlock(files, force); } else { SVNURL[] urls = new SVNURL[path.length]; for (int i = 0; i < urls.length; i++) { urls[i] = SVNURL.parseURIEncoded(path[i]); } getSVNWCClient().doUnlock(urls, force); } } catch (SVNException e) { throwException(e); } finally { resetLog(); } }
public void unlock(String[] path, boolean force) throws ClientException { boolean allFiles = true; for (int i = 0; i < path.length; i++) { allFiles = allFiles && !isURL(path[i]); } try { if (allFiles) { File[] files = new File[path.length]; for (int i = 0; i < files.length; i++) { files[i] = new File(path[i]).getAbsoluteFile(); } getSVNWCClient().doUnlock(files, force); } else { SVNURL[] urls = new SVNURL[path.length]; for (int i = 0; i < urls.length; i++) { urls[i] = SVNURL.parseURIEncoded(path[i]); } getSVNWCClient().doUnlock(urls, force); } } catch (SVNException e) { throwException(e); } finally { resetLog(); } }
public void unlock(String[] path, boolean force) throws ClientException { boolean allFiles = true; for (int i = 0; i < path.length; i++) { allFiles = allFiles && !isURL(path[i]); } try { if (allFiles) { File[] files = new File[path.length]; for (int i = 0; i < files.length; i++) { files[i] = new File(path[i]).getAbsoluteFile(); } getSVNWCClient().doUnlock(files, force); } else { SVNURL[] urls = new SVNURL[path.length]; for (int i = 0; i < urls.length; i++) { urls[i] = SVNURL.parseURIEncoded(path[i]); } getSVNWCClient().doUnlock(urls, force); } } catch (SVNException e) { throwException(e); } finally { resetLog(); } }