diff options
Diffstat (limited to 'jetty-webapp/src/main/java/org/eclipse/jetty/webapp/WebInfConfiguration.java')
-rw-r--r-- | jetty-webapp/src/main/java/org/eclipse/jetty/webapp/WebInfConfiguration.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/jetty-webapp/src/main/java/org/eclipse/jetty/webapp/WebInfConfiguration.java b/jetty-webapp/src/main/java/org/eclipse/jetty/webapp/WebInfConfiguration.java index 3dccf821d0..095d109e3d 100644 --- a/jetty-webapp/src/main/java/org/eclipse/jetty/webapp/WebInfConfiguration.java +++ b/jetty-webapp/src/main/java/org/eclipse/jetty/webapp/WebInfConfiguration.java @@ -192,15 +192,17 @@ public class WebInfConfiguration extends AbstractConfiguration //if we're not persisting the temp dir contents delete it if (!context.isPersistTempDirectory()) { - IO.delete(context.getTempDirectory()); + IO.delete(context.getTempDirectory()); } //if it wasn't explicitly configured by the user, then unset it - Boolean tmpdirConfigured = (Boolean)context.getAttribute(TEMPDIR_CONFIGURED); + Boolean tmpdirConfigured = (Boolean)context.getAttribute(TEMPDIR_CONFIGURED); if (tmpdirConfigured != null && !tmpdirConfigured) context.setTempDirectory(null); //reset the base resource back to what it was before we did any unpacking of resources + if (context.getBaseResource() != null) + context.getBaseResource().close(); context.setBaseResource(_preUnpackBaseResource); } |