private Object toBsn(NodeList set) throws XPathExpressionException { XPath xpath = xpathf.newXPath(); StringBuilder sb = new StringBuilder(); String del = ""; for (int i = 0; i < set.getLength(); i++) { Node child = set.item(i); String version = xpath.evaluate("version", child); sb.append(del); sb.append(xpath.evaluate("groupId", child)); sb.append("."); sb.append(xpath.evaluate("artifactId", child)); if (version != null && version.trim().length()!=0) { sb.append(";version="); sb.append( Analyzer.cleanupVersion(version)); } del = ", "; } return sb.toString(); }
String last = m.group(3); String suffix = m.group(4); return prefix + cleanupVersion(first) + "," + cleanupVersion(last) + suffix; } else {
public List<Version> versions(String bsn) { String path = bsn.replace('.', '/'); File base = Processor.getFile(root, path); if (!base.isDirectory()) { reporter.warning("Expected a directory %s", base); return null; } List<Version> result = new ArrayList<Version>(); String[] versions = base.list(); for (String v : versions) { v = Analyzer.cleanupVersion(v); if (Verifier.VERSION.matcher(v).matches()) { result.add(new Version(v)); } else { if (reporter.isPedantic()) { reporter .warning( "Invalid version in maven base directory: %s", base); } } } return result; }
String last = m.group(3); String suffix = m.group(4); return prefix + cleanupVersion(first) + "," + cleanupVersion(last) + suffix; } else { m = fuzzyVersion.matcher(version);
return; exportVersion = cleanupVersion(exportVersion); importRange = cleanupVersion(importRange); importRange = getReplacer().process(importRange); } else
return; exportVersion = cleanupVersion(exportVersion); String importRange = currentAttributes.get(VERSION_ATTRIBUTE); boolean impl = isTrue(currentAttributes.get(PROVIDE_DIRECTIVE)); importRange = cleanupVersion(importRange); importRange = getReplacer().process(importRange); } else
String versions[] = vsdir.list(); for (String v : versions) { String vv = Analyzer.cleanupVersion(v); if (Verifier.isVersion(vv)) { Version vvv = new Version(vv);
String versions[] = vsdir.list(); for (String v : versions) { String vv = Analyzer.cleanupVersion(v); if (Verifier.isVersion(vv)) { Version vvv = new Version(vv);