markt 2004/01/06 14:31:18 Modified: catalina/src/share/org/apache/catalina/core StandardHostDeployer.java Log: - Fix bug11682. Deploying a webapp to the root context via an Ant task when unpackWARs is true now behaves correctly. Revision Changes Path 1.17 +6 -2 jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/StandardHostDeployer.java Index: StandardHostDeployer.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/StandardHostDeployer.java,v retrieving revision 1.16 retrieving revision 1.17 diff -u -r1.16 -r1.17 --- StandardHostDeployer.java 14 Nov 2003 10:02:23 -0000 1.16 +++ StandardHostDeployer.java 6 Jan 2004 22:31:18 -0000 1.17 @@ -396,7 +396,11 @@ // Expand war file if host wants wars unpacked if (isWAR && host.isUnpackWARs()) { - docBase = ExpandWar.expand(host, war, contextPath); + if (contextPath.equals("")) { + docBase = ExpandWar.expand(host, war, "/ROOT"); + } else { + docBase = ExpandWar.expand(host, war, contextPath); + } } // Install the new web application
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]