incubator-oodt-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wooll...@apache.org
Subject svn commit: r980589 - /incubator/oodt/trunk/webapp/fmprod/src/main/java/org/apache/oodt/cas/product/data/DataUtils.java
Date Thu, 29 Jul 2010 21:40:15 GMT
Author: woollard
Date: Thu Jul 29 21:40:15 2010
New Revision: 980589

URL: http://svn.apache.org/viewvc?rev=980589&view=rev
Log:
fix to for OODT-24 to change metadata dependency to latest apache oodt source

Modified:
    incubator/oodt/trunk/webapp/fmprod/src/main/java/org/apache/oodt/cas/product/data/DataUtils.java

Modified: incubator/oodt/trunk/webapp/fmprod/src/main/java/org/apache/oodt/cas/product/data/DataUtils.java
URL: http://svn.apache.org/viewvc/incubator/oodt/trunk/webapp/fmprod/src/main/java/org/apache/oodt/cas/product/data/DataUtils.java?rev=980589&r1=980588&r2=980589&view=diff
==============================================================================
--- incubator/oodt/trunk/webapp/fmprod/src/main/java/org/apache/oodt/cas/product/data/DataUtils.java
(original)
+++ incubator/oodt/trunk/webapp/fmprod/src/main/java/org/apache/oodt/cas/product/data/DataUtils.java
Thu Jul 29 21:40:15 2010
@@ -23,6 +23,7 @@ import org.apache.oodt.cas.filemgr.struc
 import org.apache.oodt.cas.filemgr.structs.ProductType;
 import org.apache.oodt.cas.filemgr.structs.Reference;
 import org.apache.oodt.cas.metadata.Metadata;
+import org.apache.oodt.cas.metadata.SerializableMetadata;
 import org.apache.oodt.commons.xml.XMLUtils;
 
 //JDK imports
@@ -204,7 +205,8 @@ public final class DataUtils implements 
 
     // get the product metadata, and add its met file to the stream
     ByteArrayOutputStream metOut = new ByteArrayOutputStream();
-    XMLUtils.writeXmlToStream(productMet.toXML(), metOut);
+    SerializableMetadata serialMet = new SerializableMetadata(productMet);
+    serialMet.writeMetadataToXmlStream(metOut);
     ByteArrayInputStream metIn = new ByteArrayInputStream(metOut.toByteArray());
     String metFileName = metFileBaseName + ".met";
     addZipEntryFromStream(metIn, out, metFileName);



Mime
View raw message