/** * Retrieve the pax-exam option for provisioning the given maven bundle. * * @param options the list of pax-exam options * @param groupId the maven group id * @param artifactId the maven artifact id * @return the pax-exam provisioning option for the bundle or <code>null</code> if not found */ public static MavenArtifactProvisionOption findMaven(Option[] options, String groupId, String artifactId) { for (Option option : options) { if (option instanceof MavenArtifactProvisionOption) { MavenArtifactProvisionOption mvn = (MavenArtifactProvisionOption) option; if (mvn.getURL().startsWith("mvn:" + groupId + "/" + artifactId + "/")) { return mvn; } } } return null; }
/** * Retrieve the pax-exam option for provisioning the given maven bundle. * * @param options the list of pax-exam options * @param groupId the maven group id * @param artifactId the maven artifact id * @return the pax-exam provisioning option for the bundle or <code>null</code> if not found */ public static MavenArtifactProvisionOption findMaven(Option[] options, String groupId, String artifactId) { for (Option option : options) { if (option instanceof MavenArtifactProvisionOption) { MavenArtifactProvisionOption mvn = (MavenArtifactProvisionOption) option; if (mvn.getURL().startsWith("mvn:" + groupId + "/" + artifactId + "/")) { return mvn; } } } return null; }
protected Bundle installBundle(String groupId, String artifactId) throws Exception { MavenArtifactProvisionOption mvnUrl = mavenBundle(groupId, artifactId); return bundleContext.installBundle(mvnUrl.getURL()); }
protected Bundle installBundle(String groupId, String artifactId) throws Exception { MavenArtifactProvisionOption mvnUrl = mavenBundle(groupId, artifactId); return bundleContext.installBundle(mvnUrl.getURL()); }
protected Bundle installBundle(String groupId, String artifactId) throws Exception { MavenArtifactProvisionOption mvnUrl = mavenBundle(groupId, artifactId); return bundleContext.installBundle(mvnUrl.getURL()); }
protected Bundle installBundle(String groupId, String artifactId) throws Exception { MavenArtifactProvisionOption mvnUrl = CoreOptions.mavenBundle(groupId, artifactId).versionAsInProject(); return bundleContext.installBundle(mvnUrl.getURL()); }
String value = startupProps.getProperty(name); MavenArtifactProvisionOption opt = convertToMaven(name); if (opt.getURL().contains("org.apache.felix.karaf.features")) { opt.noStart();
String value = startupProps.getProperty(name); MavenArtifactProvisionOption opt = convertToMaven(name); if (opt.getURL().contains("org.apache.karaf.features")) { opt.noStart();
.getURL(); } else url = bundle.getURL(); } return url;
protected Bundle installBundle(String groupId, String artifactId) throws Exception { MavenArtifactProvisionOption mvnUrl = CoreOptions.mavenBundle(groupId, artifactId).versionAsInProject(); return bundleContext.installBundle(mvnUrl.getURL()); }