You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by br...@apache.org on 2007/03/08 20:25:48 UTC

svn commit: r516155 - /cocoon/trunk/tools/sitemaptags2daisy/src/main/java/org/apache/cocoon/documentation/daisy/SitemapTagsToDaisy.java

Author: bruno
Date: Thu Mar  8 11:25:46 2007
New Revision: 516155

URL: http://svn.apache.org/viewvc?view=rev&rev=516155
Log:
small fix of my previous change: collections were not updated if document needed other updates too.

Modified:
    cocoon/trunk/tools/sitemaptags2daisy/src/main/java/org/apache/cocoon/documentation/daisy/SitemapTagsToDaisy.java

Modified: cocoon/trunk/tools/sitemaptags2daisy/src/main/java/org/apache/cocoon/documentation/daisy/SitemapTagsToDaisy.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/tools/sitemaptags2daisy/src/main/java/org/apache/cocoon/documentation/daisy/SitemapTagsToDaisy.java?view=diff&rev=516155&r1=516154&r2=516155
==============================================================================
--- cocoon/trunk/tools/sitemaptags2daisy/src/main/java/org/apache/cocoon/documentation/daisy/SitemapTagsToDaisy.java (original)
+++ cocoon/trunk/tools/sitemaptags2daisy/src/main/java/org/apache/cocoon/documentation/daisy/SitemapTagsToDaisy.java Thu Mar  8 11:25:46 2007
@@ -146,7 +146,8 @@
                             newDocs++;
                         } else {
                             ComponentDocs oldDocs = getComponentDocs(daisyDoc);
-                            if (!docs.equals(oldDocs) || updateCollections(daisyDoc, blockName)) {
+                            boolean collectionsNeedUpdating = updateCollections(daisyDoc, blockName);
+                            if (collectionsNeedUpdating || !docs.equals(oldDocs)) {
                                 System.out.println("Will update the document for " + currentClass.getFullyQualifiedName());
                                 updateDocument(daisyDoc, docs);
                                 updatedDocs++;