public BundleInfo[] loadBundlesInfo(File location) throws IOException { SimpleConfiguratorManipulator manipulator = new SimpleConfiguratorManipulatorImpl(); InputStream input = null; try { input = new BufferedInputStream(new FileInputStream(location)); return manipulator.loadConfiguration(input, new File(output, "eclipse").toURI()); } finally { try { if (input != null) input.close(); } catch (IOException e) { // ignore } } }
public void saveBundlesInfo(BundleInfo[] bundles, File location) throws IOException { SimpleConfiguratorManipulator manipulator = new SimpleConfiguratorManipulatorImpl(); manipulator.saveConfiguration(bundles, location, null); }