Skip to content

Commit

Permalink
Fixed #46 ResourceNotFoundException when load templates in jar from C…
Browse files Browse the repository at this point in the history
…lasspathResourceLoader.
  • Loading branch information
subchen committed Dec 12, 2013
1 parent 06383b7 commit 35b820a
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ public Resource load(String name) {
int separator = file.indexOf(JAR_FILE_SEPARATOR);
File jar = PathUtils.getCanonicalFile(new File(file.substring(0, separator)));
String entry = file.substring(separator + JAR_FILE_SEPARATOR.length());
entry = PathUtils.getStandardizedTemplateRoot(entry, false);
return new JarResourceLoader.JarResource(name, jar, entry, encoding);
}
throw new IllegalStateException("cannot load from url: " + url);
Expand Down

0 comments on commit 35b820a

Please sign in to comment.