ovidiu 01/10/28 19:34:20
Modified: src/org/apache/cocoon/servlet CocoonServlet.java
Log:
Create the temporary files in a subdirectory inside the work directory, instead of
having them directly there. This hides the temporary files from Tomcat, thus
eliminating the reloading of the whole Cocoon application when a temp file (like the
sitemap or an XSP) is recompiled.
Revision Changes Path
1.47 +2 -1 xml-cocoon2/src/org/apache/cocoon/servlet/CocoonServlet.java
Index: CocoonServlet.java
===================================================================
RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/servlet/CocoonServlet.java,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -r1.46 -r1.47
--- CocoonServlet.java 2001/10/23 11:44:14 1.46
+++ CocoonServlet.java 2001/10/29 03:34:20 1.47
@@ -58,7 +58,7 @@
* @author <a href="mailto:[EMAIL PROTECTED]">Berin Loritsch</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Carsten Ziegeler</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Leo Sutic</a>
- * @version CVS $Revision: 1.46 $ $Date: 2001/10/23 11:44:14 $
+ * @version CVS $Revision: 1.47 $ $Date: 2001/10/29 03:34:20 $
*/
public class CocoonServlet extends HttpServlet {
@@ -145,6 +145,7 @@
workDir.mkdirs();
} else {
workDir = (File)
this.servletContext.getAttribute("javax.servlet.context.tempdir");
+ workDir = new File(workDir, "cocoon2-files");
}
this.appContext.put(Constants.CONTEXT_WORK_DIR, workDir);
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]