@Override public void installConfigs(org.apache.karaf.features.Feature feature) throws IOException { assertNotBlacklisted(feature); path = path.substring(1); path = substFinalName(path); final Path output = homeDirectory.resolve(path); final String finalPath = path;
AssemblyDeployCallback callback = new AssemblyDeployCallback(manager, this, systemBundle, repositories, processor); Deployer deployer = new Deployer(manager, resolver, callback); deployer.deployFully(callback.getDeploymentState(), request); return callback.getStartupBundles();
@Override public void installLibraries(org.apache.karaf.features.Feature feature) throws IOException { assertNotBlacklisted(feature); Downloader downloader = manager.createDownloader(); List<String> libraries = new ArrayList<>(); for (Library library : ((Feature) feature).getLibraries()) { String lib = library.getLocation() + ";type:=" + library.getType() + ";export:=" + library.isExport() + ";delegate:=" + library.isDelegate(); libraries.add(lib); } if (!libraries.isEmpty()) { Path configPropertiesPath = etcDirectory.resolve("config.properties"); Properties configProperties = new Properties(configPropertiesPath.toFile()); builder.downloadLibraries(downloader, configProperties, libraries, " "); } try { downloader.await(); } catch (Exception e) { throw new IOException("Error downloading configuration files", e); } }
AssemblyDeployCallback callback = new AssemblyDeployCallback(manager, this, systemBundle, repositories, processor); Deployer deployer = new Deployer(manager, resolver, callback); deployer.deployFully(callback.getDeploymentState(), request); return callback.getStartupBundles();
@Override public void installLibraries(org.apache.karaf.features.Feature feature) throws IOException { assertNotBlacklisted(feature); Downloader downloader = manager.createDownloader(); List<String> libraries = new ArrayList<>(); for (Library library : ((Feature) feature).getLibraries()) { String lib = library.getLocation() + ";type:=" + library.getType() + ";export:=" + library.isExport() + ";delegate:=" + library.isDelegate(); libraries.add(lib); } if (!libraries.isEmpty()) { Path configPropertiesPath = etcDirectory.resolve("config.properties"); Properties configProperties = new Properties(configPropertiesPath.toFile()); builder.downloadLibraries(downloader, configProperties, libraries, " "); } try { downloader.await(); } catch (Exception e) { throw new IOException("Error downloading configuration files", e); } }
@Override public void installConfigs(org.apache.karaf.features.Feature feature) throws IOException { assertNotBlacklisted(feature); path = path.substring(1); path = substFinalName(path); final Path output = homeDirectory.resolve(path); final String finalPath = path;