added and tested simple document handling and update with test.ArchiveWriter.
[vamsas.git] / src / org / vamsas / test / simpleclient / ArchiveReader.java
index 8f461c3..f99bed8 100644 (file)
@@ -23,7 +23,7 @@ public class ArchiveReader {
       if (var.isValid()) {
         InputStreamReader vdoc = new InputStreamReader(var.getVamsasDocumentStream());
         VamsasDocument doc = VamsasDocument.unmarshal(vdoc);
-        if (ArchiveReports.reportDocument(doc, var)) {
+        if (ArchiveReports.reportDocument(doc, var, true)) {
           roots = doc.getVAMSAS();
         }
       } else {
@@ -41,7 +41,7 @@ public class ArchiveReader {
           }
         }
       }
-      if (!ArchiveReports.rootReport(roots))
+      if (!ArchiveReports.rootReport(roots, true))
         System.err.print(args[0]+" is not a valid vamsas archive.");
     } catch (Exception e) {
       e.printStackTrace(System.err);