use of org.apache.maven.settings.io.DefaultSettingsWriter in project karaf by apache.
the class SettingsTest method readAndWriteSettings.
@Test
public void readAndWriteSettings() throws IOException {
Settings settings = new Settings();
Server s = new Server();
s.setId("id");
s.setUsername("admin");
s.setPassword("admin");
settings.getServers().add(s);
new DefaultSettingsWriter().write(System.out, null, settings);
}
Aggregations