String user = configuration.getProperty("user"); if (user.length() == 0) user = null; String password = configuration.getProperty("password"); if (user == null) password = null; String url = configuration.getProperty("url"); if (url == null) throw new SVNException(new Status(IStatus.ERROR, SVNProviderPlugin.ID, TeamException.UNABLE, Policy.bind("SVNRepositoryLocation.hostRequired"), null));   SVNUrl urlURL = null; try { urlURL = new SVNUrl(url); } catch (MalformedURLException e) { throw new SVNException(e.getMessage()); }
String user = configuration.getProperty("user"); if (user.length() == 0) user = null; String password = configuration.getProperty("password"); if (user == null) password = null; String url = configuration.getProperty("url"); if (url == null) throw new SVNException(new Status(IStatus.ERROR, SVNProviderPlugin.ID, TeamException.UNABLE, Policy.bind("SVNRepositoryLocation.hostRequired"), null));
	public static SVNRepositoryLocation fromProperties(Properties configuration) throws SVNException {		// We build a string to allow validation of the components that are provided to us		String user = configuration.getProperty("user");//$NON-NLS-1$ 		if (user.length() == 0)			user = null;		String password = configuration.getProperty("password");//$NON-NLS-1$ 		if (user == null)			password = null;		String url = configuration.getProperty("url");//$NON-NLS-1$ 		if (url == null)			throw new SVNException(new Status(IStatus.ERROR, SVNProviderPlugin.ID, TeamException.UNABLE, Policy.bind("SVNRepositoryLocation.hostRequired"), null));//$NON-NLS-1$ 						SVNUrl urlURL = null;		try {            urlURL = new SVNUrl(url);		} catch (MalformedURLException e) {            throw new SVNException(e.getMessage());        }		return new SVNRepositoryLocation(user, password, urlURL);	}