incubator-adffaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From awi...@apache.org
Subject svn commit: r490347 - /incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/style/cache/FileSystemStyleCache.java
Date Tue, 26 Dec 2006 18:23:06 GMT
Author: awiner
Date: Tue Dec 26 10:23:06 2006
New Revision: 490347

URL: http://svn.apache.org/viewvc?view=rev&rev=490347
Log:
ADFFACES-339: Deleting css cache while the server is running results in IOException

Modified:
    incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/style/cache/FileSystemStyleCache.java

Modified: incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/style/cache/FileSystemStyleCache.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/style/cache/FileSystemStyleCache.java?view=diff&rev=490347&r1=490346&r2=490347
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/style/cache/FileSystemStyleCache.java
(original)
+++ incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/style/cache/FileSystemStyleCache.java
Tue Dec 26 10:23:06 2006
@@ -667,6 +667,12 @@
 
     try
     {
+      // Make sure the output directory exists in case it's been
+      // blown away since the creation of the cache
+      File outputDir = outputFile.getParentFile();
+      if (!outputDir.exists())
+        outputDir.mkdirs();
+
       // If we can't create the new file, bail
       created = outputFile.createNewFile();
     }



Mime
View raw message