Hi all, 

   I running gradle 0.9.2.
   I was trying to figure out what is the maximum number of directories a 
gradle 
project may have so I made
   the following experiment. 

   The directory structure is as follows:

   grad2/
      build.gradle
      settings.gradle 
      module1/
      module2/
      module3/
      ...

   The content of the build.gradle file is:

   subprojects {
    task hello << { task -> println "I'm task1 of $task.project.name" }
   }

   The contents of the settings.gradle file is:

   include  'module1', 'module2', 'module3', ...

   Then I try to increase the number of modules to see what is the limit. Up to 
250 modules everything works
   fine but for 254 I get the following exception:

    java.lang.NoSuchMethodError: 
org.codehaus.groovy.runtime.ArrayUtil.createArray(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;L...



   Do you think is that the limit for gradle? Or it's just because all the 
modules are in the same directory?

   I have created the following python script to recreate the case:

      import os

      lastEntry = 260

      for i in range (1,lastEntry +1):
          dirName = 'module' + str(i)
          if not (os.path.exists (dirName)):
              os.mkdir (dirName)
          if i == 1:
              print "include ",
          
          print "'" + dirName + "'",
          if i < lastEntry:
              print ","

    It can be run with:

       python task.py > settings.gradle

    Thanks a lot for help, 

    RODOLFO




---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to