예제 #1
0
 public void run(@NotNull ProgressIndicator indicator) {
   try {
     mySocket = myServerSocket.accept();
     DumbService.getInstance(myProject)
         .repeatUntilPassesInSmartMode(
             new Runnable() {
               @Override
               public void run() {
                 myClasses.clear();
                 myJunit4[0] = ConfigurationUtil.findAllTestClasses(myClassFilter, myClasses);
               }
             });
     myFoundTests = !myClasses.isEmpty();
   } catch (IOException e) {
     LOG.info(e);
   } catch (Throwable e) {
     LOG.error(e);
   }
 }
예제 #2
0
  private static List<String> getLibraryFiles(@NotNull Module module) {
    List<String> result = new ArrayList<String>();

    List<String> libLocationAndTarget = ProjectStructureUtil.getLibLocationForProject(module);

    THashSet<Module> modules = new THashSet<Module>();
    collectModuleDependencies(module, modules);
    if (!modules.isEmpty()) {
      for (Module dependency : modules) {
        result.add("@" + dependency.getName());

        for (VirtualFile file : getSourceFiles(dependency)) {
          result.add(file.getPath());
        }
      }
    }

    for (String file : libLocationAndTarget) {
      result.add(file);
    }

    return result;
  }