public static Set getRubyVersionsWindowsSet()

in rake-runner-test/src/jetbrains/slow/plugins/rakerunner/RubyVersionsDataProvider.java [135:158]


  public static Set<String> getRubyVersionsWindowsSet() {
    final String storage = System.getProperty(RakeRunnerTestUtil.INTERPRETERS_STORAGE_PATH_PROPERTY);
    if (storage != null && FileUtil2.checkIfDirExists(storage)) {
      final File[] interpreters = new File(storage).listFiles(new FileFilter() {
        public boolean accept(@NotNull final File file) {
          return file.isDirectory() && isInterpreterDirectory(file);
        }
      });
      if (interpreters != null && interpreters.length > 0) {
        return CollectionsUtil.convertSet(Arrays.asList(interpreters), new Converter<String, File>() {
          public String createFrom(@NotNull final File source) {
            return source.getName();
          }
        });
      }
    }
    return new HashSet<String>() {
      {
        add("ruby-1.8.7");
        add("ruby-1.9.2");
        add("jruby-1.6.4");
      }
    };
  }