Skip to content

Commit

Permalink
Don't use zipEntry timestamp for jsp files as jasper jsp compiler dep…
Browse files Browse the repository at this point in the history
…ends on last modified time-stamp to re-compile jsp file.
  • Loading branch information
soul2zimate authored and ctomc committed Mar 15, 2016
1 parent d96cdc2 commit 2bc437b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/org/jboss/vfs/VFSUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,9 @@ public static void unzip(File zipFile, File destDir) throws IOException {
} finally {
VFSUtils.safeClose(is);
}
current.setLastModified(zipEntry.getTime());
// exclude jsp files last modified time change. jasper jsp compiler Compiler.java depends on last modified time-stamp to re-compile jsp files
if (!current.getName().endsWith(".jsp"))
current.setLastModified(zipEntry.getTime());
}
}
} finally {
Expand Down

0 comments on commit 2bc437b

Please sign in to comment.