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;
13:
14: import org.eclipse.core.runtime.Plugin;
15: import org.osgi.framework.BundleContext;
16: import org.tmatesoft.svn.core.internal.io.dav.DAVRepositoryFactory;
17: import org.tmatesoft.svn.core.internal.io.fs.FSRepositoryFactory;
18: import org.tmatesoft.svn.core.internal.io.svn.SVNSSHSession;
19: import org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryFactoryImpl;
20: import org.tmatesoft.svn.util.SVNDebugLog;
21:
22: /**
23: * The main plugin class to be used in the desktop.
24: *
25: * @version 1.1.1
26: * @author TMate Software Ltd.
27: */
28: public class SVNKitPlugin extends Plugin {
29:
30: public SVNKitPlugin() {
31: }
32:
33: public void start(BundleContext context) throws Exception {
34: super .start(context);
35: SVNDebugLog.setDefaultLog(new SVNKitLog(getBundle(),
36: isDebugging()));
37:
38: DAVRepositoryFactory.setup();
39: SVNRepositoryFactoryImpl.setup();
40: FSRepositoryFactory.setup();
41: }
42:
43: public void stop(BundleContext context) throws Exception {
44: SVNSSHSession.shutdown();
45: super.stop(context);
46: }
47: }
|