You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@chemistry.apache.org by fm...@apache.org on 2012/09/04 16:54:51 UTC

svn commit: r1380673 - /chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/scripts/counttypes.groovy

Author: fmui
Date: Tue Sep  4 14:54:51 2012
New Revision: 1380673

URL: http://svn.apache.org/viewvc?rev=1380673&view=rev
Log:
Workbench: fixed type counting script

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/scripts/counttypes.groovy

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/scripts/counttypes.groovy
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/scripts/counttypes.groovy?rev=1380673&r1=1380672&r2=1380673&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/scripts/counttypes.groovy (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/scripts/counttypes.groovy Tue Sep  4 14:54:51 2012
@@ -34,6 +34,7 @@ int countTypes(String typeId) {
 
     try {
         session.getTypeDescendants(typeId, -1, false).each { counter += 1 + count(it) }
+        counter++
     }
     catch(CmisBaseException e) { }