Cyberduck Mountain Duck CLI

Changeset 41254


Ignore:
Timestamp:
Jun 7, 2017 9:00:18 PM (14 months ago)
Author:
yla
Message:

Add method to allow defaults from a properties file.

Location:
shelves/02.06.2017
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • shelves/02.06.2017/core/src/main/java/ch/cyberduck/core/preferences/Preferences.java

    r41094 r41254  
    8686import java.util.List;
    8787import java.util.Map;
     88import java.util.Properties;
    8889import java.util.TimeZone;
    8990
     
    213214            System.out.println("Version: " + getSpecification());
    214215            System.out.println("Implementation: " + getImplementation());
     216        }
     217    }
     218
     219    protected void setDefaults(final Properties properties) {
     220        for(Map.Entry<Object, Object> property : properties.entrySet()) {
     221            defaults.put((String) property.getKey(), (String) property.getValue());
    215222        }
    216223    }
Note: See TracChangeset for help on using the changeset viewer.
swiss made software