From 35b820aa04737dc6a872dda9c2fadf59e53c4e52 Mon Sep 17 00:00:00 2001 From: subchen Date: Fri, 13 Dec 2013 00:37:36 +0800 Subject: [PATCH] Fixed #46 ResourceNotFoundException when load templates in jar from ClasspathResourceLoader. --- .../template/resource/loader/ClasspathResourceLoader.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/jetbrick/template/resource/loader/ClasspathResourceLoader.java b/src/main/java/jetbrick/template/resource/loader/ClasspathResourceLoader.java index 6cc4a6a..280e63f 100644 --- a/src/main/java/jetbrick/template/resource/loader/ClasspathResourceLoader.java +++ b/src/main/java/jetbrick/template/resource/loader/ClasspathResourceLoader.java @@ -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);