[prev in list] [next in list] [prev in thread] [next in thread]
List: tomcat-dev
Subject: svn commit: r1488151 - /tomcat/trunk/java/org/apache/catalina/startup/ContextConfig.java
From: kkolinko () apache ! org
Date: 2013-05-31 11:03:27
Message-ID: 20130531110327.3AD432388900 () eris ! apache ! org
[Download RAW message or body]
Author: kkolinko
Date: Fri May 31 11:03:26 2013
New Revision: 1488151
URL: http://svn.apache.org/r1488151
Log:
(Reviewing r1485114)
Make antiLockingDocBase an absolute path.
It is very unlikely that java.io.tmpdir is not an absolute path. For consistency, \
convert it to the absolute form just once, so the path used when starting and \
stopping the webapp is certainly the same.
Modified:
tomcat/trunk/java/org/apache/catalina/startup/ContextConfig.java
Modified: tomcat/trunk/java/org/apache/catalina/startup/ContextConfig.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/startup/ContextConfig.java?rev=1488151&r1=1488150&r2=1488151&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/startup/ContextConfig.java (original)
+++ tomcat/trunk/java/org/apache/catalina/startup/ContextConfig.java Fri May 31 \
11:03:26 2013 @@ -213,7 +213,8 @@ public class ContextConfig implements Li
/**
- * Anti-locking docBase
+ * Anti-locking docBase. It is a path to a copy of the web application
+ * in the java.io.tmpdir directory. This path is always an absolute one.
*/
private File antiLockingDocBase = null;
@@ -736,17 +737,18 @@ public class ContextConfig implements Li
System.getProperty("java.io.tmpdir"),
deploymentCount++ + "-" + docBase);
}
+ antiLockingDocBase = antiLockingDocBase.getAbsoluteFile();
if (log.isDebugEnabled()) {
log.debug("Anti locking context[" + context.getName()
+ "] setting docBase to " +
- antiLockingDocBase.getAbsolutePath());
+ antiLockingDocBase.getPath());
}
// Cleanup just in case an old deployment is lying around
ExpandWar.delete(antiLockingDocBase);
if (ExpandWar.copy(docBaseFile, antiLockingDocBase)) {
- context.setDocBase(antiLockingDocBase.getAbsolutePath());
+ context.setDocBase(antiLockingDocBase.getPath());
}
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic