public void doCleanup(File path, boolean deleteWCProperties, boolean breakLocks, boolean vacuumPristines, boolean removeUnversionedItems, boolean removeIgnoredItems, boolean includeExternals) throws SVNException { SvnCleanup cleanup = getOperationsFactory().createCleanup(); cleanup.setSingleTarget(SvnTarget.fromFile(path)); cleanup.setDeleteWCProperties(deleteWCProperties); cleanup.setBreakLocks(breakLocks); cleanup.setVacuumPristines(vacuumPristines); cleanup.setRemoveUnversionedItems(removeUnversionedItems); cleanup.setRemoveIgnoredItems(removeIgnoredItems); cleanup.setIncludeExternals(includeExternals); cleanup.run(); }
/** * Creates cleanup operation. * @return new <code>SvnCleanup</code> object */ public SvnCleanup createCleanup() { return new SvnCleanup(this); }
public void vacuum(String path, boolean removeUnversionedItems, boolean removeIgnoredItems, boolean fixRecordedTimestamps, boolean removeUnusedPristines, boolean includeExternals) throws ClientException { beforeOperation(); try { getEventHandler().setPathPrefix(getPathPrefix(path)); SvnCleanup cleanup = svnOperationFactory.createCleanup(); cleanup.addTarget(getTarget(path)); cleanup.setBreakLocks(false); cleanup.setSleepForTimestamp(fixRecordedTimestamps); cleanup.setDeleteWCProperties(false); cleanup.setVacuumPristines(removeUnusedPristines); cleanup.setRemoveUnversionedItems(removeUnversionedItems); cleanup.setRemoveIgnoredItems(removeIgnoredItems); cleanup.setIncludeExternals(includeExternals); cleanup.run(); } catch (SVNException e) { throw getClientException(e); } finally { afterOperation(); } }
public void cleanup(String path, boolean breakLocks, boolean fixRecordedTimestamps, boolean clearDavCache, boolean removeUnusedPristines, boolean includeExternals) throws ClientException { beforeOperation(); try { getEventHandler().setPathPrefix(getPathPrefix(path)); SvnCleanup cleanup = svnOperationFactory.createCleanup(); cleanup.addTarget(getTarget(path)); cleanup.setBreakLocks(breakLocks); cleanup.setSleepForTimestamp(fixRecordedTimestamps); cleanup.setDeleteWCProperties(clearDavCache); cleanup.setVacuumPristines(removeUnusedPristines); cleanup.setIncludeExternals(includeExternals); cleanup.run(); } catch (SVNException e) { throw getClientException(e); } finally { afterOperation(); } }
@Override protected Void run() throws SVNException { SVNWCClient16 client = new SVNWCClient16(getOperation().getRepositoryPool(), getOperation().getOptions()); client.setEventHandler(getOperation().getEventHandler()); client.doCleanup(getOperation().getFirstTarget().getFile(), getOperation().isDeleteWCProperties()); return null; }
cleanup.setSingleTarget(SvnTarget.fromFile(path)); cleanup.setDeleteWCProperties(deleteWCProperties); cleanup.run();
/** * Cleans up a working copy. This method is equivalent to a call to * <code>doCleanup(path, false)</code>. * * @param path * a WC path to start a cleanup from * @throws SVNException * if one of the following is true: * <ul> * <li><code>path</code> does not exist * <li><code>path</code>'s parent directory is not under version * control * </ul> * @see #doCleanup(File, boolean) */ public void doCleanup(File path) throws SVNException { SvnCleanup cleanup = getOperationsFactory().createCleanup(); cleanup.setSingleTarget(SvnTarget.fromFile(path)); cleanup.run(); }