Tag: cws_dev300_rptfix02
User: oj      
Date: 2008-07-02 06:39:52+0000
Modified:
   
dba/reportdesign/java/com/sun/star/report/pentaho/output/text/TextRawReportTarget.java

Log:
 #i91253# copy the meta.xml

File Changes:

Directory: /dba/reportdesign/java/com/sun/star/report/pentaho/output/text/
==========================================================================

File [changed]: TextRawReportTarget.java
Url: 
http://dba.openoffice.org/source/browse/dba/reportdesign/java/com/sun/star/report/pentaho/output/text/TextRawReportTarget.java?r1=1.8&r2=1.8.18.1
Delta lines:  +17 -2
--------------------
--- TextRawReportTarget.java    2008-06-16 13:16:49+0000        1.8
+++ TextRawReportTarget.java    2008-07-02 06:39:49+0000        1.8.18.1
@@ -7,7 +7,7 @@
  * OpenOffice.org - a multi-platform office productivity suite
  *
  * $RCSfile: TextRawReportTarget.java,v $
- * $Revision: 1.8 $
+ * $Revision: 1.8.18.1 $
  *
  * This file is part of OpenOffice.org.
  *
@@ -1338,6 +1338,21 @@
             xmlWriter.writeCloseTag();
             xmlWriter.writeCloseTag();
             xmlWriter.close();
+
+                       // now copy the meta.xml
+                       if (getInputRepository().isReadable("meta.xml"))
+            {
+                final InputStream inputStream = 
getInputRepository().createInputStream("meta.xml");
+                try
+                {
+                    final OutputStream outputMetaStream = 
getOutputRepository().createOutputStream("meta.xml", "text/xml");
+                    IOUtils.getInstance().copyStreams(inputStream, 
outputMetaStream);
+                    outputMetaStream.close();
+                } finally
+                {
+                    inputStream.close();
+                }
+            }
         }
         catch (IOException ioe)
         {




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to