@Override
  protected ClassLoader buildClasspath() {
    List<File> files = new ArrayList<>();
    List<Path> paths = new ArrayList<>();
    for (AntClasspathEntry entry : AntBuildFileImpl.ADDITIONAL_CLASSPATH.get(myOptions)) {
      entry.addFilesTo(files);
      for (File file : files) {
        paths.add(file.toPath());
      }
      files.clear();
    }

    final AntInstallation antInstallation = AntBuildFileImpl.RUN_WITH_ANT.get(myOptions);
    final ClassLoader parentLoader = (antInstallation != null) ? antInstallation.getClassLoader() : null;
    if (parentLoader != null && files.size() == 0) {
      // no additional classpath, so it's ok to use ant installation's loader
      return parentLoader;
    }

    return new AntResourcesClassLoader(paths, parentLoader, false, false);
  }
@Override
  protected ClassLoader buildClasspath()