Author: vmassol
Date: 2008-02-25 13:43:58 +0100 (Mon, 25 Feb 2008)
New Revision: 7927

Modified:
   
xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/plugin/packaging/Package.java
Log:
Added doc

Modified: 
xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/plugin/packaging/Package.java
===================================================================
--- 
xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/plugin/packaging/Package.java
      2008-02-25 11:15:19 UTC (rev 7926)
+++ 
xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/plugin/packaging/Package.java
      2008-02-25 12:43:58 UTC (rev 7927)
@@ -516,12 +516,16 @@
         }
 
         int status = DocumentInfo.INSTALL_OK;
+
+        // Start by installing all documents having a class definition so that 
their
+        // definitions are available when installing documents using them. 
         for (int i = 0; i < classFiles.size(); i++) {
             if (installDocument(((DocumentInfo) classFiles.get(i)), isAdmin, 
context) == DocumentInfo.INSTALL_ERROR) {
                 status = DocumentInfo.INSTALL_ERROR;
             }
         }
 
+        // Install the remaining documents (without class definitions). 
         for (int i = 0; i < files.size(); i++) {
             DocumentInfo di = (DocumentInfo) files.get(i);
             if (!classFiles.contains(di)) {

_______________________________________________
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications

Reply via email to