public void lock(String[] path, String comment, 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().doLock(files, force, comment); }else{ SVNURL[] urls = new SVNURL[path.length]; for (int i = 0; i < urls.length; i++) { urls[i] = SVNURL.parseURIEncoded(path[i]); } getSVNWCClient().doLock(urls, force, comment); } } catch (SVNException e) { throwException(e); } }
public void lock(String[] path, String comment, 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().doLock(files, force, comment); } else { SVNURL[] urls = new SVNURL[path.length]; for (int i = 0; i < urls.length; i++) { urls[i] = SVNURL.parseURIEncoded(path[i]); } getSVNWCClient().doLock(urls, force, comment); } } catch (SVNException e) { throwException(e); } finally { resetLog(); } }
public void lock(String[] path, String comment, 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().doLock(files, force, comment); } else { SVNURL[] urls = new SVNURL[path.length]; for (int i = 0; i < urls.length; i++) { urls[i] = SVNURL.parseURIEncoded(path[i]); } getSVNWCClient().doLock(urls, force, comment); } } catch (SVNException e) { throwException(e); } finally { resetLog(); } }
public void lock(String[] path, String comment, 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().doLock(files, force, comment); } else { SVNURL[] urls = new SVNURL[path.length]; for (int i = 0; i < urls.length; i++) { urls[i] = SVNURL.parseURIEncoded(path[i]); } getSVNWCClient().doLock(urls, force, comment); } } catch (SVNException e) { throwException(e); } finally { resetLog(); } }
File[] filesArray = (File[]) paths.toArray(new File[paths.size()]); try { client.doLock(filesArray, getSVNEnvironment().isForce(), message); } catch (SVNException e) { if (e.getErrorMessage().getErrorCode() == SVNErrorCode.WC_PATH_NOT_FOUND) { client.doLock(urlsArray, getSVNEnvironment().isForce(), message);
File[] filesArray = (File[]) paths.toArray(new File[paths.size()]); try { client.doLock(filesArray, getSVNEnvironment().isForce(), message); } catch (SVNException e) { if (e.getErrorMessage().getErrorCode() == SVNErrorCode.WC_PATH_NOT_FOUND) { client.doLock(urlsArray, getSVNEnvironment().isForce(), message);