The code in Radeox (TextFileUrlMapper) is as follows:
…
try{
BufferedReader br = new BufferedReader(
new InputStreamReader(
new FileInputStream(getFileName())));
addMapping(br);
} catch (IOException e) {
log.warn("Unable to read " + getFileName());
fileNotFound = true;
} if (fileNotFound) {
BufferedReader br = null;
try {
br = new BufferedReader(
new InputStreamReader(
klass.getResourceAsStream("/"+getFileName())));
addMapping(br);
} catch (Exception e) {
log.warn("Unable to read /" + getFileName() + " from jar");
}
}So it first checks the file system for the path that is returned by getFileName(), which is "conf/bookservices.txt", and then the classpath. I haven't really tried to get this code running, since neither allows me to use a Snip.