public static String extractUrl(String override) { Clause[] cs = Parser.parseClauses(new String[]{override}); if (cs.length != 1) { throw new IllegalStateException("Override contains more than one clause: " + override); } return cs[0].getName(); }
public Blacklist(List<String> blacklist) { this.clauses = Parser.parseClauses(blacklist.toArray(new String[blacklist.size()])); compileClauses(); }
public static Clause[] parseHeader(String header) throws IllegalArgumentException { Clause[] clauses = null; if (header != null) { if (header.length() == 0) { throw new IllegalArgumentException("The header cannot be an empty string."); } String[] ss = parseDelimitedString(header, ","); clauses = parseClauses(ss); } return (clauses == null) ? new Clause[0] : clauses; }
public static Clause[] parseHeader(String header) throws IllegalArgumentException { Clause[] clauses = null; if (header != null) { if (header.length() == 0) { throw new IllegalArgumentException("The header cannot be an empty string."); } String[] ss = parseDelimitedString(header, ","); clauses = parseClauses(ss); } return (clauses == null) ? new Clause[0] : clauses; }
public static Clause[] parseHeader(String header) throws IllegalArgumentException { Clause[] clauses = null; if (header != null) { if (header.length() == 0) { throw new IllegalArgumentException("The header cannot be an empty string."); } String[] ss = parseDelimitedString(header, ","); clauses = parseClauses(ss); } return (clauses == null) ? new Clause[0] : clauses; }
public static Clause[] parseHeader(String header) throws IllegalArgumentException { Clause[] clauses = null; if (header != null) { if (header.length() == 0) { throw new IllegalArgumentException("The header cannot be an empty string."); } String[] ss = parseDelimitedString(header, ","); clauses = parseClauses(ss); } return (clauses == null) ? new Clause[0] : clauses; }
public Blacklist(String blacklistUrl) { Set<String> blacklist = new HashSet<>(); if (blacklistUrl != null) { try (InputStream is = new URL(blacklistUrl).openStream(); BufferedReader reader = new BufferedReader(new InputStreamReader(is))) { reader.lines() // .map(String::trim) // .filter(line -> !line.isEmpty() && !line.startsWith("#")) .forEach(blacklist::add); } catch (FileNotFoundException e) { LOGGER.debug("Unable to load blacklist bundles list", e.toString()); } catch (Exception e) { LOGGER.debug("Unable to load blacklist bundles list", e); } } this.clauses = Parser.parseClauses(blacklist.toArray(new String[blacklist.size()])); compileClauses(); }
public static <T extends Resource> void override(Map<String, T> resources, Collection<String> overrides) { for (Clause override : Parser.parseClauses(overrides.toArray(new String[overrides.size()]))) { String overrideRange = override.getAttribute(OVERRIDE_RANGE); T over = resources.get(override.getName());
List<BundleReplacements.OverrideBundle> result = new LinkedList<>(); for (Clause clause : Parser.parseClauses(overrides.toArray(new String[overrides.size()]))) {
versionString = originalId.substring(originalId.indexOf("/") + 1); } else if (originalId.contains(";")) { Clause[] c = org.apache.felix.utils.manifest.Parser.parseClauses(new String[] { originalId }); nameString = c[0].getName(); versionString = c[0].getAttribute(RANGE);
void downloadLibraries(Downloader downloader, final Properties config, Collection<String> libraries, String indent) throws MalformedURLException { Clause[] clauses = org.apache.felix.utils.manifest.Parser.parseClauses(libraries.toArray(new String[libraries.size()])); for (final Clause clause : clauses) { final String filename;
void downloadLibraries(Downloader downloader, final Properties config, Collection<String> libraries, String indent) throws MalformedURLException { Clause[] clauses = org.apache.felix.utils.manifest.Parser.parseClauses(libraries.toArray(new String[libraries.size()])); for (final Clause clause : clauses) { final String filename;
for (Clause bundle : Parser.parseClauses(this.bundles.toArray(new String[this.bundles.size()]))) { final String loc = bundle.getName(); downloader.download(loc, provider -> { for (Clause bundle : Parser.parseClauses(this.bundles.toArray(new String[this.bundles.size()]))) { final String loc = bundle.getName(); boolean dependency = Boolean.parseBoolean(bundle.getAttribute("dependency"));
Clause[] clauses = Parser.parseClauses(new String[] { schemaExpression }); if (clauses.length != 1) { throw new SchemaExpressionSyntaxException(
public static Filter createFilterForLiquibaseCapabilityAttributes(final String schemaExpression) { Clause[] clauses = Parser.parseClauses(new String[] { schemaExpression }); if (clauses.length != 1) { throw new SchemaExpressionSyntaxException("The number of Clauses in the Schema expression should be 1");
Clause[] clauses = Parser.parseClauses(new String[] { requirementString }); if (clauses != null) { fillAttributesOfRequirementFromClause(attributes, clauses[0]);