String (String programName, String unixExec, String winExec) { File pluginRoot = new File(PluginPathManager.getPluginHomePath("hg4idea")); File bin = new File(pluginRoot, FileUtil.toSystemDependentName("testData/bin")); File exec = new File(bin, SystemInfo.isWindows ? winExec : unixExec); if (exec.exists() && exec.canExecute()) { debug("Using " + programName + " from test data"); return exec.getPath(); } return null; }