Skip to content

Commit

Permalink
finds classes in precompiled folder too
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Solntsev, Marek Kusmin committed May 26, 2017
1 parent 1e80b6e commit 1156192
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 1156192

Please sign in to comment.