Send reply to:  	fop-dev@xml.apache.org
From:           	Dharamveer Salecha <dharam@wilco-int.com>
To:             	fop-dev@xml.apache.org
Subject:        	BUG in xml-fop\src\org\apache\fop\apps\XalanCommandLine.java
Date sent:      	Thu, 23 Nov 2000 12:06:47 +0530

[ Double-click this line for list subscription options ] 

Fotis,
>  I notice that the PDF file stream is not closed. Due to this, when I
> generate PDFs in batch mode(with same PDF output filename), the PDF file
> is sometimes not writable for subsequent generation.
> 
> Attached is the file which closes the filestream. Diff with the latest in CVS
> is below.
 <<XalanCommandLine.java>> 
Please update the changes in FOP repository.

> Thanks
> Dharam
> 
cvs diff XalanCommandLine.java (in directory
C:\xml-fop\src\org\apache\fop\apps\)
Index: XalanCommandLine.java
===================================================================
RCS file:
/home/cvspublic/xml-fop/src/org/apache/fop/apps/XalanCommandLine.java,v
retrieving revision 1.5
diff -r1.5 XalanCommandLine.java
68a69
> import java.io.BufferedWriter;
247c248,249
<             driver.setWriter(new PrintWriter(new FileWriter(args[2])));
---
> 		    PrintWriter pwriter = new PrintWriter(new BufferedWriter(new FileWriter(args[2])));
> 		    driver.setWriter(pwriter);
254a257,258
> 			pwriter.flush();
> 			pwriter.close();

*****CVS exited normally with code 1*****


