01: /*
02: * ====================================================================
03: * Copyright (c) 2004-2008 TMate Software Ltd. All rights reserved.
04: *
05: * This software is licensed as described in the file COPYING, which
06: * you should have received as part of this distribution. The terms
07: * are also available at http://svnkit.com/license.html
08: * If newer versions of this license are posted there, you may use a
09: * newer version instead, at your option.
10: * ====================================================================
11: */
12:
13: package org.tmatesoft.svn.cli.command;
14:
15: import java.io.File;
16: import java.io.InputStream;
17: import java.io.PrintStream;
18:
19: import org.tmatesoft.svn.cli.SVNCommand;
20: import org.tmatesoft.svn.core.SVNException;
21: import org.tmatesoft.svn.core.wc.SVNWCClient;
22:
23: /**
24: * @version 1.1.1
25: * @author TMate Software Ltd.
26: */
27: public class SVNCleanupCommand extends SVNCommand {
28:
29: public void run(InputStream in, PrintStream out, PrintStream err)
30: throws SVNException {
31: run(out, err);
32: }
33:
34: public void run(final PrintStream out, final PrintStream err)
35: throws SVNException {
36: String path = getCommandLine().getPathAt(0);
37: SVNWCClient client = getClientManager().getWCClient();
38: client.doCleanup(new File(path).getAbsoluteFile());
39: }
40: }
|