User: rt Date: 2008-07-10 15:54:13+0000 Modified: dba/reportdesign/java/com/sun/star/report/pentaho/output/text/TextRawReportTarget.java
Log: INTEGRATION: CWS rptfix02 (1.8.18); FILE MERGED 2008/07/02 06:42:20 oj 1.8.18.2: #i91253# copy the meta.xml 2008/07/02 06:39:49 oj 1.8.18.1: #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.9 Delta lines: +17 -0 -------------------- --- TextRawReportTarget.java 2008-06-16 13:16:49+0000 1.8 +++ TextRawReportTarget.java 2008-07-10 15:54:10+0000 1.9 @@ -32,6 +32,8 @@ import com.sun.star.report.DataSourceFactory; import java.io.IOException; import java.io.OutputStream; +import java.io.InputStream; +import org.jfree.io.IOUtils; import java.io.OutputStreamWriter; import java.util.Iterator; import java.util.Map; @@ -1338,6 +1340,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]
