lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rasik Pandey" <>
Subject RE : FSDirectory.lockDir and recent Lock changes
Date Tue, 23 Mar 2004 22:21:45 GMT

> You are probably using Tomcat?

> To solve the Tomcat (if started from batc file) edit the
> catalina.bat,
> and set either the absolute path to CATALINA_BASE or set the
> CATALINA_TMPDIR=%TEMP% or to any absolute path.

So then what is the reasoning behind the "!lockDir.isAbsolute())" statement below? Why can't
this directory be relative?

private FSDirectory(File path, boolean create) throws IOException {
    directory = path;

   lockDir = new File(LOCK_DIR);
   if (!lockDir.isAbsolute()) {
     lockDir = new File(directory, LOCK_DIR);
    if (create)

    if (!directory.isDirectory())
      throw new IOException(path + " not a directory");

> The tomcat sets the to "..\temp", so that's the
> cause of the
> problem thougth.

Do you think this raise any backward compatibility concerns?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message