Skip to content

Commit

Permalink
Merge pull request lets-blade#298 from sunzhenyucn/dev
Browse files Browse the repository at this point in the history
fix: Fix StaticFileHandle cannot found static files with Gradle
  • Loading branch information
hellokaton authored Nov 30, 2018
2 parents f61af3c + dc280c8 commit c8ad8ef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public void handle(WebContext webContext) throws Exception {
// gradle resources path
File resourcesDirectory = new File(new File(Const.class.getResource("/").getPath()).getParent() + "/resources");
if (resourcesDirectory.isDirectory()) {
file = new File(resourcesDirectory.getPath() + "/resources/" + cleanUri.substring(1));
file = new File(resourcesDirectory.getPath() + "/" + cleanUri.substring(1));
if (file.isHidden() || !file.exists()) {
log404(log, method, uri);
throw new NotFoundException(uri);
Expand Down

0 comments on commit c8ad8ef

Please sign in to comment.