String repositoryHome = System.getProperty("repository.home");
String launcherHome = System.getProperty("jlaunchpad.home");
File outSettings = new File(launcherHome + File.separatorChar + "settings.xml");
ProxiesXmlHelper xmlHelper = new ProxiesXmlHelper();
if(!outSettings.exists()) {
File inSettings = new File(installRoot,"src/main/config/settings.xml");
xmlHelper.read(inSettings);
}
else {
xmlHelper.read(outSettings);
}
Element localRepository = xmlHelper.getLocalRepositoryElement();
// set up local repository value
localRepository.setText(repositoryHome.replace(File.separatorChar, '/'));
xmlHelper.process(launcherProps);
xmlHelper.save(outSettings);
}