@Test public void testPidsToExtract() { String pidsToExtract = "\n" + " !jmx.acl.*,\n" + " !org.apache.karaf.command.acl.*,\n" + " *\n" + " "; List<String> p2e = Arrays.asList(pidsToExtract.split(",")); Builder builder = Builder.newInstance().pidsToExtract(p2e); assertThat(builder.getPidsToExtract().get(0), equalTo("!jmx.acl.*")); assertThat(builder.getPidsToExtract().get(1), equalTo("!org.apache.karaf.command.acl.*")); assertThat(builder.getPidsToExtract().get(2), equalTo("*")); }
public Builder pidsToExtract(List<String> pidsToExtract) { if (pidsToExtract != null) { for (String pid : pidsToExtract) { this.pidsToExtract.add(pid.trim()); } } return this; }
Builder { public Builder pidsToExtract(List<String> pidsToExtract) { if (pidsToExtract != null) { for (String pid : pidsToExtract) { this.pidsToExtract.add(pid.trim()); } } return this; } }
Builder { public Builder pidsToExtract(List<String> pidsToExtract) { if (pidsToExtract != null) { for (String pid : pidsToExtract) { this.pidsToExtract.add(pid.trim()); } } return this; }  }
Builder { public Builder pidsToExtract(List<String> pidsToExtract) { if (pidsToExtract != null) { for (String pid : pidsToExtract) { this.pidsToExtract.add(pid.trim()); } } return this; }  static Builder newInstance(); Builder defaultStage(Stage stage); Builder defaultAddAll(boolean addAll); Builder profilesUris(String... profilesUri); Builder libraries(String... libraries); Builder kars(String... kars); Builder kars(boolean addAll, String... kars); Builder kars(Stage stage, boolean addAll, String... kars); Builder repositories(String... repositories); Builder repositories(boolean addAll, String... repositories); Builder repositories(Stage stage, boolean addAll, String... repositories); Builder features(String... features); Builder features(Stage stage, String... features); Builder bundles(String... bundles); Builder bundles(Stage stage, String... bundles); Builder profiles(String... profiles); Builder profiles(Stage stage, String... profiles); Builder homeDirectory(Path homeDirectory); Builder javase(String javase); Builder environment(String environment); Builder useReferenceUrls(); Builder useReferenceUrls(boolean useReferenceUrls); Builder resolverParallelism(final int resolverParallelism); void writeProfiles(boolean writeProfiles); void generateConsistencyReport(String generateConsistencyReport); void setConsistencyReportProjectName(String consistencyReportProjectName); void setConsistencyReportProjectVersion(String consistencyReportProjectVersion); Builder karafVersion(KarafVersion karafVersion); Builder defaultStartLevel(int defaultStartLevel); Builder setFeaturesProcessing(Path featuresProcessing); Builder ignoreDependencyFlag(); Builder ignoreDependencyFlag(boolean ignoreDependencyFlag); Builder offline(); Builder offline(boolean offline); Builder localRepository(String localRepository); Builder mavenRepositories(String mavenRepositories); Builder resolverWrapper(Function<MavenResolver, MavenResolver> wrapper); Builder staticFramework(); Builder staticFramework(String version); Builder blacklistProfiles(Collection<String> profiles); Builder blacklistFeatures(Collection<String> features); Builder blacklistBundles(Collection<String> bundles); Builder extraProtocols(Collection<String> protocols); Builder blacklistRepositories(Collection<String> repositories); Builder blacklistPolicy(BlacklistPolicy policy); Builder propertyEdits(KarafPropertyEdits propertyEdits); Builder pidsToExtract(List<String> pidsToExtract); Builder translatedUrls(Map<String, String> translatedUrls); Builder config(String key, String value); Builder system(String key, String value); List<String> getBlacklistedProfileNames(); List<String> getBlacklistedFeatureIdentifiers(); List<String> getBlacklistedBundleURIs(); List<String> getBlacklistedRepositoryURIs(); BlacklistPolicy getBlacklistPolicy(); List<String> getPidsToExtract(); void generateAssembly(); void generateConsistencyReport(Map<String, Features> repositories, Set<Feature> allInstalledFeatures, Profile installedProfile, File result); String sanitize(String uri); }
Builder { public Builder pidsToExtract(List<String> pidsToExtract) { if (pidsToExtract != null) { for (String pid : pidsToExtract) { this.pidsToExtract.add(pid.trim()); } } return this; }  static Builder newInstance(); Builder defaultStage(Stage stage); Builder defaultAddAll(boolean addAll); Builder profilesUris(String... profilesUri); Builder libraries(String... libraries); Builder kars(String... kars); Builder kars(boolean addAll, String... kars); Builder kars(Stage stage, boolean addAll, String... kars); Builder repositories(String... repositories); Builder repositories(boolean addAll, String... repositories); Builder repositories(Stage stage, boolean addAll, String... repositories); Builder features(String... features); Builder features(Stage stage, String... features); Builder bundles(String... bundles); Builder bundles(Stage stage, String... bundles); Builder profiles(String... profiles); Builder profiles(Stage stage, String... profiles); Builder homeDirectory(Path homeDirectory); Builder javase(String javase); Builder environment(String environment); Builder useReferenceUrls(); Builder useReferenceUrls(boolean useReferenceUrls); Builder resolverParallelism(final int resolverParallelism); void writeProfiles(boolean writeProfiles); void generateConsistencyReport(String generateConsistencyReport); void setConsistencyReportProjectName(String consistencyReportProjectName); void setConsistencyReportProjectVersion(String consistencyReportProjectVersion); Builder karafVersion(KarafVersion karafVersion); Builder defaultStartLevel(int defaultStartLevel); Builder setFeaturesProcessing(Path featuresProcessing); Builder ignoreDependencyFlag(); Builder ignoreDependencyFlag(boolean ignoreDependencyFlag); Builder offline(); Builder offline(boolean offline); Builder localRepository(String localRepository); Builder mavenRepositories(String mavenRepositories); Builder resolverWrapper(Function<MavenResolver, MavenResolver> wrapper); Builder staticFramework(); Builder staticFramework(String version); Builder blacklistProfiles(Collection<String> profiles); Builder blacklistFeatures(Collection<String> features); Builder blacklistBundles(Collection<String> bundles); Builder extraProtocols(Collection<String> protocols); Builder blacklistRepositories(Collection<String> repositories); Builder blacklistPolicy(BlacklistPolicy policy); Builder propertyEdits(KarafPropertyEdits propertyEdits); Builder pidsToExtract(List<String> pidsToExtract); Builder translatedUrls(Map<String, String> translatedUrls); Builder config(String key, String value); Builder system(String key, String value); List<String> getBlacklistedProfileNames(); List<String> getBlacklistedFeatureIdentifiers(); List<String> getBlacklistedBundleURIs(); List<String> getBlacklistedRepositoryURIs(); BlacklistPolicy getBlacklistPolicy(); List<String> getPidsToExtract(); void generateAssembly(); void generateConsistencyReport(Map<String, Features> repositories, Set<Feature> allInstalledFeatures, Profile installedProfile, File result); String sanitize(String uri); static final String ORG_OPS4J_PAX_URL_MVN_PID; }