tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Johnson <>
Subject [TC6] makeOutputDir() revision breaks Jasper
Date Fri, 08 Sep 2006 17:20:00 GMT
Revision 441109 to results in makeOutputDir() 
returning false even if the desired outputDir exists.  This is because 
File.mkdirs() returns true  "if and only if the directory was created". If 
the directory already exists, makeOutputDir() is returning false, 
resulting in an IllegalStateException being thrown.

Possible fix that fits in with other recent revisions to

    protected boolean makeOutputDir() {
        synchronized(outputDirLock) {
            File outDirFile = new File(outputDir);
            if (!outDirFile.mkdirs() && !outDirFile.exists())
                return false;
                return true;

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message