private String getDefaultSSHCommandLine() { Map tunnels = getConfigFile().getProperties("tunnels"); if (tunnels == null || !tunnels.containsKey("ssh")) { return null; } return (String) tunnels.get("ssh"); }
/** * Returns autoproperties as a {@link java.util.Map} * where each key is a file name pattern and the corresponding * value is a string in the form of <code>"propName=propValue"</code>. * * @return a {@link java.util.Map} containing autoproperties */ public Map getAutoProperties() { return getConfigFile().getProperties(AUTOPROPS_GROUP); }
/** * Returns autoproperties as a {@link java.util.Map} * where each key is a file name pattern and the corresponding * value is a string in the form of <code>"propName=propValue"</code>. * * @return a {@link java.util.Map} containing autoproperties */ public Map getAutoProperties() { return getConfigFile().getProperties(AUTOPROPS_GROUP); }
/** * Returns autoproperties as a {@link java.util.Map} * where each key is a file name pattern and the corresponding * value is a string in the form of <code>"propName=propValue"</code>. * * @return a {@link java.util.Map} containing autoproperties */ public Map getAutoProperties() { return getConfigFile().getProperties(AUTOPROPS_GROUP); }
@Override public void enumerate(String section, ISVNConfig.Enumerator handler) { final Map properties = configFile.getProperties(section); final Set<Map.Entry<String, String>> entrySet = properties.entrySet(); for (Map.Entry<String, String> entry : entrySet) { final String option = entry.getKey(); final String value = entry.getValue(); handler.option(option, value); } } }
private String getDefaultSSHCommandLine() { Map tunnels = getConfigFile().getProperties("tunnels"); if (tunnels == null || !tunnels.containsKey("ssh")) { return null; } return (String) tunnels.get("ssh"); }
private Map getHostProperties(String host) { Map globalProps = getServersFile().getProperties("global"); String groupName = getGroupName(getServersFile().getProperties("groups"), host); if (groupName != null) { Map hostProps = getServersFile().getProperties(groupName); globalProps.putAll(hostProps); } return globalProps; }
private Map getHostProperties(String host) { Map globalProps = getServersFile().getProperties("global"); String groupName = getGroupName(getServersFile().getProperties("groups"), host); if (groupName != null) { Map hostProps = getServersFile().getProperties(groupName); globalProps.putAll(hostProps); } return globalProps; }
private Map getHostProperties(String host) { Map globalProps = getServersFile().getProperties("global"); String groupName = getGroupName(getServersFile().getProperties("groups"), host); if (groupName != null) { Map hostProps = getServersFile().getProperties(groupName); globalProps.putAll(hostProps); } return globalProps; }
private Map getHostProperties() { Map properties = getServersFile().getProperties("global"); String groupName = getGroupName(getServersFile().getProperties("groups")); if (groupName != null) { Map hostProps = getServersFile().getProperties(groupName); properties.putAll(hostProps); } return properties; }
protected int getDefaultSSHPortNumber() { Map tunnels = getConfigFile().getProperties("tunnels"); if (tunnels == null || !tunnels.containsKey("ssh")) { return -1; } String sshProgram = (String) tunnels.get("ssh"); if (sshProgram == null) { return -1; } String port = getOptionValue(sshProgram, sshProgram.toLowerCase().trim().startsWith("plink") ? "-p" : "-P"); port = port == null ? System.getProperty("svnkit.ssh2.port", System.getProperty("javasvn.ssh2.port")) : port; if (port != null) { try { return Integer.parseInt(port); } catch (NumberFormatException e) { // } } return -1; }
public ISVNConnector createTunnelConnector(SVNURL url) { String subProtocolName = url.getProtocol().substring("svn+".length()); if (subProtocolName == null) { return null; } Map tunnels = getConfigFile().getProperties("tunnels"); final String tunnel = (String)tunnels.get(subProtocolName); if (tunnel == null) { return null; } return new SVNTunnelConnector(subProtocolName, tunnel); }
protected int getDefaultSSHPortNumber() { Map tunnels = getConfigFile().getProperties("tunnels"); if (tunnels == null || !tunnels.containsKey("ssh")) { return -1; } String sshProgram = (String) tunnels.get("ssh"); if (sshProgram == null) { return -1; } String port = getOptionValue(sshProgram, sshProgram.toLowerCase().trim().startsWith("plink") ? "-p" : "-P"); port = port == null ? System.getProperty("svnkit.ssh2.port", System.getProperty("javasvn.ssh2.port")) : port; if (port != null) { try { return Integer.parseInt(port); } catch (NumberFormatException e) { // } } return -1; }
public ISVNConnector createTunnelConnector(SVNURL url) { String subProtocolName = url.getProtocol().substring("svn+".length()); if (subProtocolName == null) { return null; } Map tunnels = getConfigFile().getProperties("tunnels"); final String tunnel = (String)tunnels.get(subProtocolName); if (tunnel == null) { return null; } return new SVNTunnelConnector(subProtocolName, tunnel); }
public ISVNConnector createTunnelConnector(SVNURL url) { if (myTunnelProvider != null) { return myTunnelProvider.createTunnelConnector(url); } else { String subProtocolName = url.getProtocol().substring("svn+".length()); if (subProtocolName == null) { return null; } Map tunnels = getConfigFile().getProperties("tunnels"); final String tunnel = (String) tunnels.get(subProtocolName); if (tunnel == null) { return null; } return new SVNTunnelConnector(subProtocolName, tunnel); } }
protected SVNSSHAuthentication getDefaultSSHAuthentication() { Map tunnels = getConfigFile().getProperties("tunnels"); if (tunnels == null || !tunnels.containsKey("ssh")) { tunnels = new SVNHashMap();
protected SVNSSHAuthentication getDefaultSSHAuthentication() { Map tunnels = getConfigFile().getProperties("tunnels"); if (tunnels == null || !tunnels.containsKey("ssh")) { tunnels = new SVNHashMap();