This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new c1dda4a Make the StandardContext.postWorkDirectory() protected
c1dda4a is described below
commit c1dda4a08b54a7efb3dbc758c64c7a734cbffea1
Author: Mark Thomas <[email protected]>
AuthorDate: Wed Mar 3 18:55:27 2021 +0000
Make the StandardContext.postWorkDirectory() protected
To help users wishing to customise the default work directory behaviour
---
java/org/apache/catalina/core/StandardContext.java | 2 +-
webapps/docs/changelog.xml | 5 +++++
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/java/org/apache/catalina/core/StandardContext.java
b/java/org/apache/catalina/core/StandardContext.java
index 058664c..5518690 100644
--- a/java/org/apache/catalina/core/StandardContext.java
+++ b/java/org/apache/catalina/core/StandardContext.java
@@ -6054,7 +6054,7 @@ public class StandardContext extends ContainerBase
/**
* Set the appropriate context attribute for our work directory.
*/
- private void postWorkDirectory() {
+ protected void postWorkDirectory() {
// Acquire (or calculate) the work directory path
String workDir = getWorkDir();
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index e81fef9..c2cb87b 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -142,6 +142,11 @@
Correct syntax error in output of <code>JsonErrorReportValve</code>.
Pull request provided by Viraj Kanwade. (markt)
</fix>
+ <scode>
+ Make the <code>StandardContext.postWorkDirectory()</code> protected
+ rather than private to help users wishing to customise the default
+ work directory behaviour. (markt)
+ </scode>
</changelog>
</subsection>
<subsection name="Coyote">
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]