core/src/main/java/io/fabric8/jube/util/InstallHelper.java
public static Map<String, String> readPorts(File propertiesFile) throws IOException {
        Map<String, String> answer = new Hashtable<>();
        Properties properties = new Properties();
        if (propertiesFile.exists() && propertiesFile.isFile()) {
            properties.load(new FileInputStream(propertiesFile));
            Set<Map.Entry<Object, Object>> entries = properties.entrySet();
            for (Map.Entry<Object, Object> entry : entries) {
                Object key = entry.getKey();
                Object value = entry.getValue();
                if (key != null && value != null) {
                    answer.put(key.toString(), value.toString());
                }
            }
        }
        return answer;
    }
/**
     * Reads the properties file returning a map of port name to default port value
     */
Reads the properties file returning a map of port name to default port value
Reads the properties file returning a map of port name to default port value
public static Map<String, String> readPorts(File propertiesFile) throws IOException {
        Map<String, String> answer = new Hashtable<>();
        Properties properties = new Properties();
        if (propertiesFile.exists() && propertiesFile.isFile()) {
            properties.load(new FileInputStream(propertiesFile));
            Set<Map.Entry<Object, Object>> entries = properties.entrySet();
            for (Map.Entry<Object, Object> entry : entries) {
                Object key = entry.getKey();
                Object value = entry.getValue();
                if (key != null && value != null) {
                    answer.put(key.toString(), value.toString());
                }
            }
        }
        return answer;
    }
public static Map < String , String > readPorts ( File propertiesFile ) throws IOException { Map < String , String > answer = new Hashtable < > ( ) ; Properties properties = new Properties ( ) ; if ( propertiesFile . exists ( ) && propertiesFile . isFile ( ) ) { properties . load ( new FileInputStream ( propertiesFile ) ) ; Set < Map . Entry < Object , Object > > entries = properties . entrySet ( ) ; for ( Map . Entry < Object , Object > entry : entries ) { Object key = entry . getKey ( ) ; Object value = entry . getValue ( ) ; if ( key != null && value != null ) { answer . put ( key . toString ( ) , value . toString ( ) ) ; } } } return answer ; }
Reads the properties file returning a map of port name to default port value
Reads the properties file returning a map of port name to default port value