Package org.sf.jlaunchpad.xml

Examples of org.sf.jlaunchpad.xml.ProxiesXmlHelper


    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);
  }
View Full Code Here

TOP

Related Classes of org.sf.jlaunchpad.xml.ProxiesXmlHelper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.