Exemple #1
0
  private static Collection notFoundUserLibraries(Collection allPrjDefs) {
    Collection notFoundUserLibraries = new HashSet();
    if (allPrjDefs != null) {
      Iterator prjsIt = allPrjDefs.iterator();
      while (prjsIt.hasNext()) {
        AbstractProject ap = (AbstractProject) prjsIt.next();
        Iterator it = ap.getUserLibraries().iterator();
        while (it.hasNext()) {
          AbstractProject.UserLibrary uLib = (AbstractProject.UserLibrary) it.next();
          if (uLib.fileNotFound()) {
            notFoundUserLibraries.add(uLib);
          }
        }
      }
    }

    return notFoundUserLibraries;
  }
Exemple #2
0
  static Collection getInvalidUserLibraries(Collection allPrjDefs) {
    Collection invalidUserLibraries = new HashSet();
    if (allPrjDefs != null) {
      Iterator prjsIt = allPrjDefs.iterator();
      while (prjsIt.hasNext()) {
        AbstractProject ap = (AbstractProject) prjsIt.next();
        if (ap.getJDKDirectory() == null && ap.getJdkId() != null) {
          invalidUserLibraries.add(new AbstractProject.UserLibrary(ap.getJdkId(), false));
        }
        Iterator it = ap.getUserLibraries().iterator();
        while (it.hasNext()) {
          AbstractProject.UserLibrary uLib = (AbstractProject.UserLibrary) it.next();
          if (!uLib.isValid()) {
            invalidUserLibraries.add(uLib);
          }
        }
      }
    }

    return invalidUserLibraries;
  }