in src/main/java/org/apache/sling/maven/jspc/JspCIOProvider.java [59:76]
public InputStream getInputStream(String fileName) throws IOException {
File file = getFile(fileName);
if (file.exists()) {
return FileUtils.openInputStream(getFile(fileName));
}
// coming from a jar; remove the leading slash
String jarEntryPath;
if (fileName.startsWith("/")) {
jarEntryPath = fileName.substring(1);
} else {
jarEntryPath = fileName;
}
URL url = loader.getResource(jarEntryPath);
if (url != null) {
return url.openStream();
}
throw new FileNotFoundException("Cannot find file " + fileName + ".");
}