Skip to content

Commit

Permalink
Merge pull request #1152 from codeborne/fix-hibernate5-in-precompiled…
Browse files Browse the repository at this point in the history
…-mode

finds classes in precompiled folder too
  • Loading branch information
asolntsev authored May 26, 2017
2 parents 1e80b6e + 1156192 commit 0c59058
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion framework/src/play/classloading/ApplicationClassloader.java
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,13 @@ public URL getResource(String name) {
return res.getRealFile().toURI().toURL();
}
}
if (Play.configuration.getProperty("play.bytecodeCache", "true").equals("true")) {
if (Play.usePrecompiled) {
File file = Play.getFile("precompiled/java/" + name);
if (file.exists()) {
return file.toURI().toURL();
}
}
else if ("true".equals(Play.configuration.getProperty("play.bytecodeCache", "true"))) {
File f = new File(Play.tmpDir, "classes/" + name);
if (f.exists()) {
return f.toURI().toURL();
Expand Down

0 comments on commit 0c59058

Please sign in to comment.