The following patch fixes a bug with re-running a texen task in the same
process.  The fileWritters cache was not being cleared.  The files were closed
but still in the cache and upon a second run a stream closed exception was
generated.

The patch is against the VELOCITY_1_1 branch.

I humbly request that this patch be applied to the HEAD and the VELOCITY_1_1
branch.  (As this is the branch we are releasing our project off of.)

Thanks!

Russell Edens
SkyTrail Software Development
[EMAIL PROTECTED]
206.729.1573
http://jvoom.com

Index: Generator.java
===================================================================
RCS file:
/repository/tools/jakarta-velocity/src/java/org/apache/velocity/texen/Generator.
java,v
retrieving revision 1.1.1.1
diff -B -b -u -r1.1.1.1 Generator.java
--- Generator.java      2001/06/12 18:58:25     1.1.1.1
+++ Generator.java      2001/06/12 20:50:41
@@ -448,5 +448,7 @@
                 /* do nothing */
             }
         }
+        // clear the file writers cache
+        fileWriters.clear();
     }
 }


Reply via email to