in teamcity-symbol-agent/src/main/java/jetbrains/buildServer/symbols/WinDbgToolsDetector.java [110:125]
private File findWinDbgHomeInDirectory(File directory) {
if (!directory.isDirectory()) return null;
final String directoryAbsolutePath = directory.getAbsolutePath();
LOG.info("Searching for WinDbg home under " + directoryAbsolutePath);
final File[] matches = directory.listFiles(new FileFilter() {
public boolean accept(File pathname) {
return pathname.isDirectory() && pathname.getName().startsWith(DEBUGGING_TOOLS_FOR_WINDOWS);
}
});
if (matches == null || matches.length == 0) LOG.info("WinDbg home was NOT found under " + directoryAbsolutePath);
else return matches[0];
return null;
}