in src/main/java/org/apache/sling/maven/jspc/JspCTldLocationsCache.java [224:249]
public URL getTldLocationURL(String tldLocation) {
if (tldLocation.startsWith(TLD_SCHEME)) {
tldLocation = tldLocation.substring(TLD_SCHEME.length());
String[] locationInfo = null;
try {
locationInfo = getLocation(tldLocation);
} catch (JasperException ex) {
log.error("Cannot retrieve TLD location url for " + tldLocation + ".");
log.debug("Details:", ex);
}
if (locationInfo != null) {
try {
if (locationInfo.length == 2) {
return new URL("jar:" + locationInfo[0] + "!/" + locationInfo[1]);
} else if (locationInfo.length == 1) {
return new URL(locationInfo[0]);
}
} catch (MalformedURLException e) {
log.warn("Cannot retrieve TLD location url for " + tldLocation + ".");
log.debug("Details:", e);
}
}
}
return null;
}