You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Dharamveer Salecha <dh...@wilco-int.com> on 2000/11/23 07:19:07 UTC

BUG [xml-fop\src\org\apache\fop\apps\XalanCommandLine.java ]

Hi
 I noticed 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
not written for subsequent generation. 

Attached is the file which closes the filestream. Diff with the latest in
CVS is below.

 <<XalanCommandLine.java>> 

Fotis ( or others), 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
247c247,248
<             driver.setWriter(new PrintWriter(new FileWriter(args[2])));
---
> 		    PrintWriter pwriter = new PrintWriter((new
FileWriter(args[2]));
> 		    driver.setWriter(pwriter);
254a256,257
> 			pwriter.flush();
> 			pwriter.close();

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