diff options
Diffstat (limited to 'jetty-webapp/src/main/java/org/eclipse/jetty/webapp/WebAppContext.java')
-rw-r--r-- | jetty-webapp/src/main/java/org/eclipse/jetty/webapp/WebAppContext.java | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/jetty-webapp/src/main/java/org/eclipse/jetty/webapp/WebAppContext.java b/jetty-webapp/src/main/java/org/eclipse/jetty/webapp/WebAppContext.java index 4f311c9908..d1eeff8a47 100644 --- a/jetty-webapp/src/main/java/org/eclipse/jetty/webapp/WebAppContext.java +++ b/jetty-webapp/src/main/java/org/eclipse/jetty/webapp/WebAppContext.java @@ -124,6 +124,7 @@ public class WebAppContext extends ServletContextHandler implements WebAppClassL private boolean _distributable=false; private boolean _extractWAR=true; private boolean _copyDir=false; + private boolean _copyWebInf=true; // TODO change to false? private boolean _logUrlOnStart =false; private boolean _parentLoaderPriority= Boolean.getBoolean("org.eclipse.jetty.server.webapp.parentLoaderPriority"); private PermissionCollection _permissions; @@ -754,13 +755,22 @@ public class WebAppContext extends ServletContextHandler implements WebAppClassL /* ------------------------------------------------------------ */ /** - * @return True if the webdir is copied (to allow hot replacement of jars) + * @return True if the webdir is copied (to allow hot replacement of jars on windows) */ public boolean isCopyWebDir() { return _copyDir; } - + + /* ------------------------------------------------------------ */ + /** + * @return True if the web-inf lib and classes directories are copied (to allow hot replacement of jars on windows) + */ + public boolean isCopyWebInf() + { + return _copyWebInf; + } + /* ------------------------------------------------------------ */ /** * @return True if the classloader should delegate first to the parent @@ -960,7 +970,6 @@ public class WebAppContext extends ServletContextHandler implements WebAppClassL /* ------------------------------------------------------------ */ /** - * * @param copy True if the webdir is copied (to allow hot replacement of jars) */ public void setCopyWebDir(boolean copy) @@ -970,6 +979,15 @@ public class WebAppContext extends ServletContextHandler implements WebAppClassL /* ------------------------------------------------------------ */ /** + * @param copyWebInf True if the web-inf lib and classes directories are copied (to allow hot replacement of jars on windows) + */ + public void setCopyWebInf(boolean copyWebInf) + { + _copyWebInf = copyWebInf; + } + + /* ------------------------------------------------------------ */ + /** * @param java2compliant The java2compliant to set. */ public void setParentLoaderPriority(boolean java2compliant) |