private static void collectClasspath(List<File> files,
                                         ListProperty<AntClasspathEntry> property,
                                         AbstractProperty.AbstractPropertyContainer container) {
      if (!container.hasProperty(property)) return;
      Iterator<AntClasspathEntry> entries = property.getIterator(container);
      while (entries.hasNext()) {
        AntClasspathEntry entry = entries.next();
        entry.addFilesTo(files);
      }
    }
private static void collectClasspath(List<File> files,
                                         ListProperty<AntClasspathEntry> property,
                                         AbstractProperty.AbstractPropertyContainer container)