acumiskey
Wed, 07 May 2008 16:28:09 -0700
Author: acumiskey Date: Wed May 7 16:27:45 2008 New Revision: 654322 URL: http://svn.apache.org/viewvc?rev=654322&view=rev Log: Looks like the serialVersionUID got bumped but the log statement wasn't being completely honest about what it was doing. FontCache now attempts to delete its cache file so subsequent runs should repopulate it. Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/fonts/FontCache.java Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/fonts/FontCache.java URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/fonts/FontCache.java?rev=654322&r1=654321&r2=654322&view=diff ============================================================================== --- xmlgraphics/fop/trunk/src/java/org/apache/fop/fonts/FontCache.java (original) +++ xmlgraphics/fop/trunk/src/java/org/apache/fop/fonts/FontCache.java Wed May 7 16:27:45 2008 @@ -151,6 +151,11 @@ //We don't really care about the exception since it's just a cache file log.warn("I/O exception while reading font cache (" + ioe.getMessage() + "). Discarding font cache file."); + try { + cacheFile.delete(); + } catch(SecurityException ex) { + log.warn("Failed to delete font cache file: " + cacheFile.getAbsolutePath()); + } } } return null; --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]