cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1541227 - /cxf/web/src/main/java/org/apache/cxf/cwiki/SiteExporter.java
Date Tue, 12 Nov 2013 20:46:28 GMT
Author: dkulp
Date: Tue Nov 12 20:46:27 2013
New Revision: 1541227

URL: http://svn.apache.org/r1541227
Log:
Add some debug info

Modified:
    cxf/web/src/main/java/org/apache/cxf/cwiki/SiteExporter.java

Modified: cxf/web/src/main/java/org/apache/cxf/cwiki/SiteExporter.java
URL: http://svn.apache.org/viewvc/cxf/web/src/main/java/org/apache/cxf/cwiki/SiteExporter.java?rev=1541227&r1=1541226&r2=1541227&view=diff
==============================================================================
--- cxf/web/src/main/java/org/apache/cxf/cwiki/SiteExporter.java (original)
+++ cxf/web/src/main/java/org/apache/cxf/cwiki/SiteExporter.java Tue Nov 12 20:46:27 2013
@@ -827,6 +827,7 @@ public class SiteExporter implements Run
     }
     
     public void loadBlog() throws Exception {
+        System.out.println("Loading Blog entries for " + spaceKey);
         Document doc = DOMUtils.createDocument();
         Element el = doc.createElementNS(SOAPNS, "ns1:getBlogEntries");
         Element el2 = doc.createElement("in0");
@@ -846,8 +847,13 @@ public class SiteExporter implements Run
                 BlogEntrySummary entry = new BlogEntrySummary((Element)nd);
                 entry.setVersion(getBlogVersion(entry.id));
                 BlogEntrySummary oldEntry = blog.put(entry.getId(), entry);
+                System.out.println("Found Blog entry for " + entry.getTitle() + " " + entry.getPath());
+
                 if (oldEntry == null || oldEntry.getVersion() != entry.getVersion()) {
+                    System.out.println("   and it's modified");
                     modifiedBlog.add(entry);
+                } else {
+                    System.out.println("   but it's not modified");
                 }
                 oldBlog.remove(entry.getId());
             }



Mime
View raw message