/** * make a hot copy of the repository * * @param path the path to the source repository * @param targetPath the path to the target repository * @param cleanLogs clean the unused log files in the source * repository * @throws ClientException throw in case of problem */ public void hotcopy(String path, String targetPath, boolean cleanLogs) throws ClientException { try { getAdminClient().doHotCopy(new File(path).getAbsoluteFile(), new File(targetPath).getAbsoluteFile()); } catch (SVNException e) { JavaHLObjectFactory.throwException(e, myDelegate); } }
/** * make a hot copy of the repository * * @param path the path to the source repository * @param targetPath the path to the target repository * @param cleanLogs clean the unused log files in the source * repository * @throws ClientException throw in case of problem */ public void hotcopy(String path, String targetPath, boolean cleanLogs) throws ClientException { try { getAdminClient().doHotCopy(new File(path).getAbsoluteFile(), new File(targetPath).getAbsoluteFile()); } catch (SVNException e) { JavaHLObjectFactory.throwException(e, myDelegate); } }
/** * remove open transaction in a repository * * @param path the path to the repository * @param transactions the transactions to be removed * @throws ClientException throw in case of problem */ public void rmtxns(String path, String[] transactions) throws ClientException { try { getAdminClient().doRemoveTransactions(new File(path).getAbsoluteFile(), transactions); } catch (SVNException e) { JavaHLObjectFactory.throwException(e, myDelegate); } }
/** * make a hot copy of the repository * * @param path the path to the source repository * @param targetPath the path to the target repository * @param cleanLogs clean the unused log files in the source * repository * @throws ClientException throw in case of problem */ public void hotcopy(String path, String targetPath, boolean cleanLogs) throws ClientException { try { getAdminClient().doHotCopy(new File(path).getAbsoluteFile(), new File(targetPath).getAbsoluteFile()); } catch (SVNException e) { JavaHLObjectFactory.throwException(e, myDelegate); } }
/** * recover the berkeley db of a repository, returns youngest revision * * @param path the path to the repository * @throws ClientException throw in case of problem */ public long recover(String path) throws ClientException { try { File repositoryRoot = new File(path).getAbsoluteFile(); getAdminClient().doRecover(repositoryRoot); return getAdminClient().getYoungestRevision(repositoryRoot); } catch (SVNException e) { JavaHLObjectFactory.throwException(e, myDelegate); } return -1; }
/** * recover the berkeley db of a repository, returns youngest revision * * @param path the path to the repository * @throws ClientException throw in case of problem */ public long recover(String path) throws ClientException { try { File repositoryRoot = new File(path).getAbsoluteFile(); getAdminClient().doRecover(repositoryRoot); return getAdminClient().getYoungestRevision(repositoryRoot); } catch (SVNException e) { JavaHLObjectFactory.throwException(e, myDelegate); } return -1; }
/** * recover the berkeley db of a repository, returns youngest revision * * @param path the path to the repository * @throws ClientException throw in case of problem */ public long recover(String path) throws ClientException { try { File repositoryRoot = new File(path).getAbsoluteFile(); getAdminClient().doRecover(repositoryRoot); return getAdminClient().getYoungestRevision(repositoryRoot); } catch (SVNException e) { JavaHLObjectFactory.throwException(e, myDelegate); } return -1; }
/** * remove open transaction in a repository * * @param path the path to the repository * @param transactions the transactions to be removed * @throws ClientException throw in case of problem */ public void rmtxns(String path, String[] transactions) throws ClientException { try { getAdminClient().doRemoveTransactions(new File(path).getAbsoluteFile(), transactions); } catch (SVNException e) { JavaHLObjectFactory.throwException(e, myDelegate); } }
/** * remove open transaction in a repository * * @param path the path to the repository * @param transactions the transactions to be removed * @throws ClientException throw in case of problem */ public void rmtxns(String path, String[] transactions) throws ClientException { try { getAdminClient().doRemoveTransactions(new File(path).getAbsoluteFile(), transactions); } catch (SVNException e) { JavaHLObjectFactory.throwException(e, myDelegate); } }
/** * remove multiple locks from the repository * * @param path the path to the repository * @param locks the name of the locked items * @throws ClientException throw in case of problem * @since 1.2 */ public void rmlocks(String path, String[] locks) throws ClientException { try { getAdminClient().doRemoveLocks(new File(path).getAbsoluteFile(), locks); } catch (SVNException e) { JavaHLObjectFactory.throwException(e, myDelegate); } finally { getAdminClient().setEventHandler(null); } }
/** * remove multiple locks from the repository * * @param path the path to the repository * @param locks the name of the locked items * @throws ClientException throw in case of problem * @since 1.2 */ public void rmlocks(String path, String[] locks) throws ClientException { try { getAdminClient().doRemoveLocks(new File(path).getAbsoluteFile(), locks); } catch (SVNException e) { JavaHLObjectFactory.throwException(e, myDelegate); } finally { getAdminClient().setEventHandler(null); } }
/** * remove multiple locks from the repository * * @param path the path to the repository * @param locks the name of the locked items * @throws ClientException throw in case of problem * @since 1.2 */ public void rmlocks(String path, String[] locks) throws ClientException { try { getAdminClient().doRemoveLocks(new File(path).getAbsoluteFile(), locks); } catch (SVNException e) { JavaHLObjectFactory.throwException(e, myDelegate); } finally { getAdminClient().setEventHandler(null); } }
/** * list all open transactions in a repository * * @param path the path to the repository * @param receiver receives one transaction name per call * @throws ClientException throw in case of problem */ public void lstxns(String path, final MessageReceiver receiver) throws ClientException { getAdminClient().setEventHandler(new SVNAdminEventAdapter() { public void handleAdminEvent(SVNAdminEvent event, double progress) throws SVNException { if (receiver != null && event.getTxnName() != null) { receiver.receiveMessageLine(event.getTxnName()); } } }); try { getAdminClient().doListTransactions(new File(path).getAbsoluteFile()); } catch (SVNException e) { JavaHLObjectFactory.throwException(e, myDelegate); } finally { getAdminClient().setEventHandler(null); } }
/** * list all open transactions in a repository * * @param path the path to the repository * @param receiver receives one transaction name per call * @throws ClientException throw in case of problem */ public void lstxns(String path, final MessageReceiver receiver) throws ClientException { getAdminClient().setEventHandler(new SVNAdminEventAdapter() { public void handleAdminEvent(SVNAdminEvent event, double progress) throws SVNException { if (receiver != null && event.getTxnName() != null) { receiver.receiveMessageLine(event.getTxnName()); } } }); try { getAdminClient().doListTransactions(new File(path).getAbsoluteFile()); } catch (SVNException e) { JavaHLObjectFactory.throwException(e, myDelegate); } finally { getAdminClient().setEventHandler(null); } }
/** * list all locks in the repository * * @param path the path to the repository * @throws ClientException throw in case of problem * @since 1.2 */ public Lock[] lslocks(String path) throws ClientException { final ArrayList locks = new ArrayList(); getAdminClient().setEventHandler(new SVNAdminEventAdapter() { public void handleAdminEvent(SVNAdminEvent event, double progress) throws SVNException { if (event.getAction() == SVNAdminEventAction.LOCK_LISTED) { SVNLock svnLock = event.getLock(); Lock lock = JavaHLObjectFactory.createLock(svnLock); locks.add(lock); } } }); try { getAdminClient().doListLocks(new File(path).getAbsoluteFile()); } catch (SVNException e) { JavaHLObjectFactory.throwException(e, myDelegate); } finally { getAdminClient().setEventHandler(null); } return (Lock[]) locks.toArray(new Lock[locks.size()]); }
/** * list all locks in the repository * * @param path the path to the repository * @throws ClientException throw in case of problem * @since 1.2 */ public Lock[] lslocks(String path) throws ClientException { final ArrayList locks = new ArrayList(); getAdminClient().setEventHandler(new SVNAdminEventAdapter() { public void handleAdminEvent(SVNAdminEvent event, double progress) throws SVNException { if (event.getAction() == SVNAdminEventAction.LOCK_LISTED) { SVNLock svnLock = event.getLock(); Lock lock = JavaHLObjectFactory.createLock(svnLock); locks.add(lock); } } }); try { getAdminClient().doListLocks(new File(path).getAbsoluteFile()); } catch (SVNException e) { JavaHLObjectFactory.throwException(e, myDelegate); } finally { getAdminClient().setEventHandler(null); } return (Lock[]) locks.toArray(new Lock[locks.size()]); }
/** * list all open transactions in a repository * * @param path the path to the repository * @param receiver receives one transaction name per call * @throws ClientException throw in case of problem */ public void lstxns(String path, final MessageReceiver receiver) throws ClientException { getAdminClient().setEventHandler(new SVNAdminEventAdapter() { public void handleAdminEvent(SVNAdminEvent event, double progress) throws SVNException { if (receiver != null && event.getTxnName() != null) { receiver.receiveMessageLine(event.getTxnName()); } } }); try { getAdminClient().doListTransactions(new File(path).getAbsoluteFile()); } catch (SVNException e) { JavaHLObjectFactory.throwException(e, myDelegate); } finally { getAdminClient().setEventHandler(null); } }
/** * list all locks in the repository * * @param path the path to the repository * @throws ClientException throw in case of problem * @since 1.2 */ public Lock[] lslocks(String path) throws ClientException { final ArrayList locks = new ArrayList(); getAdminClient().setEventHandler(new SVNAdminEventAdapter() { public void handleAdminEvent(SVNAdminEvent event, double progress) throws SVNException { if (event.getAction() == SVNAdminEventAction.LOCK_LISTED) { SVNLock svnLock = event.getLock(); Lock lock = JavaHLObjectFactory.createLock(svnLock); locks.add(lock); } } }); try { getAdminClient().doListLocks(new File(path).getAbsoluteFile()); } catch (SVNException e) { JavaHLObjectFactory.throwException(e, myDelegate); } finally { getAdminClient().setEventHandler(null); } return (Lock[]) locks.toArray(new Lock[locks.size()]); }
uuidAction = SVNUUIDAction.FORCE_UUID; getAdminClient().setEventHandler(new SVNAdminEventAdapter() { getAdminClient().doLoad(new File(path).getAbsoluteFile(), is, usePreCommitHook, usePostCommitHook, uuidAction, relativePath); } catch (SVNException e) { if (messageOutput != null) { getAdminClient().setEventHandler(null);
getAdminClient().setEventHandler(new SVNAdminEventAdapter() { public void handleAdminEvent(SVNAdminEvent event, double progress) throws SVNException { if (messageOut != null && event.getAction() == SVNAdminEventAction.REVISION_DUMPED) { getAdminClient().doVerify(new File(path).getAbsoluteFile(), JavaHLObjectFactory.getSVNRevision(start), JavaHLObjectFactory.getSVNRevision(end)); } catch (SVNException e) { try { getAdminClient().setEventHandler(null);