if (mode == null || mode.equalsIgnoreCase("javahl")) { plugin.setSvnClientInterface(SVNClientAdapterFactory.JAVAHL_CLIENT); if (plugin.getSvnClientInterface() != SVNClientAdapterFactory.JAVAHL_CLIENT) { System.out.println("Warning : Can't use Javahl"); } } else if (mode.equalsIgnoreCase("cli")) { plugin .setSvnClientInterface(SVNClientAdapterFactory.COMMANDLINE_CLIENT); if (plugin.getSvnClientInterface() != SVNClientAdapterFactory.JAVAHL_CLIENT) { System.out .println("Warning : Can't use command line interface"); } } else { throw new RuntimeException("Unknown svn.mode: " + mode); }
remoteHttpUrl = System.getProperty("remote.http.url"); remoteHttpsUrl = System.getProperty("remote.https.url"); user = System.getProperty("svn.user"); pass = System.getProperty("svn.pass");
	protected void setUp() throws Exception {		// first, we create the repository		ISVNClientAdapter svnClientCmd = SVNClientAdapterFactory.createSVNClient(SVNClientAdapterFactory.JAVAHL_CLIENT);		reposPath = new File(System.getProperty("java.io.tmpdir")+"/test_repos").getAbsoluteFile();		removeDir(reposPath);				svnClientCmd.createRepository(reposPath, ISVNClientAdapter.REPOSITORY_FSFS);		assertTrue(reposPath.exists());		// we need the corresponding url		url = new SVNUrl(reposPath.toURI().toString().replaceFirst("file:/","file:///"));				// in case we're testing auth or something.		remoteHttpUrl = System.getProperty("remote.http.url");		remoteHttpsUrl = System.getProperty("remote.https.url");		user = System.getProperty("svn.user");		pass = System.getProperty("svn.pass");		// do we use javahl or command line ? 		String mode = System.getProperty("svn.mode");		SVNProviderPlugin plugin = SVNProviderPlugin.getPlugin();		if (mode == null || mode.equalsIgnoreCase("javahl")) {			plugin.setSvnClientInterface(SVNClientAdapterFactory.JAVAHL_CLIENT);			if (plugin.getSvnClientInterface() != SVNClientAdapterFactory.JAVAHL_CLIENT) {				System.out.println("Warning : Can't use Javahl");			}		} else if (mode.equalsIgnoreCase("cli")) {			plugin					.setSvnClientInterface(SVNClientAdapterFactory.COMMANDLINE_CLIENT);			if (plugin.getSvnClientInterface() != SVNClientAdapterFactory.JAVAHL_CLIENT) {				System.out						.println("Warning : Can't use command line interface");			}		} else {			throw new RuntimeException("Unknown svn.mode: " + mode);		}		// get the ISVNRepositoryLocation corresponding to our repository		repositories = plugin.getRepositories();		Properties properties = new Properties();		properties.setProperty("url", url.toString());		if (user != null)			properties.setProperty("user", user);		if (pass != null)			properties.setProperty("password", pass);				repositoryLocation = repositories.createRepository(properties);	}