File tree Expand file tree Collapse file tree
openstack-commons/src/main/java/org/openstack/utils Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77import java .util .Map ;
88import java .util .Map .Entry ;
99import java .util .Properties ;
10+ import java .util .TreeMap ;
1011
1112import com .google .common .base .Splitter ;
13+ import com .google .common .collect .Maps ;
1214
1315public class PropertyUtils {
1416 public static Properties loadProperties (File file ) throws IOException {
1517 Properties properties = new Properties ();
18+ loadProperties (properties , file );
19+ return properties ;
20+ }
21+
22+ public static void loadProperties (Properties properties , File file ) throws IOException {
1623 FileInputStream is = new FileInputStream (file );
1724 try {
1825 properties .load (is );
1926 } finally {
2027 Io .safeClose (is );
2128 }
22- return properties ;
2329 }
2430
2531 public static Properties getChildProperties (Properties base , String prefix ) {
You can’t perform that action at this time.
0 commit comments