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: package org.tmatesoft.svn.core.wc;
13:
14: import java.io.File;
15:
16: /**
17: * <b>DefaultSVNCommitParameters</b> is the default commit parameters
18: * implementation.
19: *
20: * @version 1.1.1
21: * @author TMate Software Ltd.
22: */
23: public class DefaultSVNCommitParameters implements ISVNCommitParameters {
24:
25: /**
26: * Says a committer to skip a missing file.
27: *
28: * @param file a missing file
29: * @return {@link ISVNCommitParameters#SKIP SKIP}
30: */
31: public Action onMissingFile(File file) {
32: return SKIP;
33: }
34:
35: /**
36: * Says a committer to abort the operation.
37: *
38: * @param file a missing directory
39: * @return {@link ISVNCommitParameters#ERROR ERROR}
40: */
41: public Action onMissingDirectory(File file) {
42: return ERROR;
43: }
44:
45: public boolean onDirectoryDeletion(File directory) {
46: return true;
47: }
48:
49: public boolean onFileDeletion(File directory) {
50: return true;
51: }
52: }
|