in fxcop-agent/src/jetbrains/buildServer/fxcop/agent/FxCopVisualStudioSearch.java [31:56]
public Collection<File> getHintPaths(@NotNull final BuildAgentConfiguration config, @Nullable AgentParametersSupplier dotNetParametersSupplier) {
if (dotNetParametersSupplier == null){
return Collections.emptyList();
}
final Map<String, String> parameters = dotNetParametersSupplier.getParameters();
final TreeSet<String> visualStudio = new TreeSet<String>();
for (String key : parameters.keySet()) {
if (VISUAL_STUDIO_PATTERN.matcher(key).find()) {
visualStudio.add(key);
}
}
return CollectionsUtil.filterAndConvertCollection(visualStudio.descendingSet(), new Converter<File, String>() {
@Override
public File createFrom(@NotNull final String name) {
return new File(parameters.get(name), FXCOP_EXE_RELATIVE_PATH);
}
}, new Filter<String>() {
@Override
public boolean accept(@NotNull final String name) {
return StringUtil.isNotEmpty(parameters.get(name));
}
});
}