aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Cumiskey <acumiskey@apache.org>2008-05-07 23:27:45 +0000
committerAdrian Cumiskey <acumiskey@apache.org>2008-05-07 23:27:45 +0000
commit860e8234581a041579834fae8da11248a12dedc4 (patch)
treefb30ec2bf3b5f8c26da1317aeb77db53fb5c7801
parented1db93f52dc1fb48c34a938103f999df5c8f16f (diff)
downloadxmlgraphics-fop-860e8234581a041579834fae8da11248a12dedc4.tar.gz
xmlgraphics-fop-860e8234581a041579834fae8da11248a12dedc4.zip
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.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@654322 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/java/org/apache/fop/fonts/FontCache.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/fonts/FontCache.java b/src/java/org/apache/fop/fonts/FontCache.java
index c5b6ab9c7..213f5cdee 100644
--- a/src/java/org/apache/fop/fonts/FontCache.java
+++ b/src/java/org/apache/fop/fonts/FontCache.java
@@ -151,6 +151,11 @@ public final class FontCache implements Serializable {
//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;