cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicole Natho <na...@math.TU-Berlin.DE>
Subject work-directory
Date Fri, 12 Jul 2002 15:20:53 GMT

Hello!

We try to unterstand the init()-methode of CocoonServlet. There we found
the following snippet:


// first init the work-directory for the logger.
// this is required if we are running inside a war file!
final String workDirParam = conf.getInitParameter("work-directory");
        if ((workDirParam != null) && (!workDirParam.trim().equals(""))) {
            if (this.servletContextPath == null) {
                this.workDir = new File(workDirParam);
            } else {
                this.workDir = IOUtils.createFile( new
File(servletContextPath) , workDirParam);
            }
            this.workDir.mkdirs();
        } else {
            this.workDir = (File)
this.servletContext.getAttribute("javax.servlet.context.tempdir");
            this.workDir = new File(workDir, "cocoon-files");
            this.workDir.mkdirs();
        }

But after execution, we don't find the /WEB-INF/work directory. We don't
find the entry in the web.xml (<init-param> <param-name> work-directory
... /WEB-INF/work ...), too.
We thought this snippet create some file anyway, because of the
mkdirs()-methode in the else-clause.  Or did we misunderstand something?

greetings
nicole & lars




---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message