in hawtio-log/src/main/java/io/hawt/log/support/LogQuerySupport.java [221:258]
protected String getArtifactFile(String mavenCoords, String filePath, String classifier) throws IOException {
filePath = ensureStartsWithSlash(filePath);
String coords = mavenCoords.replace(':', '/');
String[] array = coords.split("\\s+");
if (array == null || array.length < 2) {
return loadCoords(coords, filePath, classifier);
} else {
// lets enumerate all values if space separated
if (isRoot(filePath)) {
StringBuilder buffer = new StringBuilder();
for (String coord : array) {
try {
String text = loadCoords(coord, filePath, classifier);
if (text != null) {
buffer.append(text);
}
} catch (IOException e) {
if (LOG.isDebugEnabled()) {
LOG.debug("" + e);
}
}
}
return buffer.toString();
} else {
for (String coord : array) {
try {
return loadCoords(coord, filePath, classifier);
} catch (IOException e) {
if (LOG.isDebugEnabled()) {
LOG.debug("" + e);
}
}
}
return null;
}
}
}