{
/*
* match a path ending in \bin\chimera or \bin\chimera.exe
- * back-slash is double escaped - for Java String, and regex pattern
+ * back-slashes are double escaped - for Java String, and for regex
*/
- pathList.addAll(FileUtils.findMatchingPaths(
- ".*\\\\bin\\\\chimera(\\\\.exe)?$", Paths.get(root)));
+ for (String version : FileUtils
+ .findMatchingPaths(".*\\\\Chimera.*$", Paths.get(root)))
+ {
+ pathList.addAll(FileUtils.findMatchingPaths(
+ ".*\\\\bin\\\\chimera(\\\\.exe)?$",
+ Paths.get(version)));
+ }
}
}
else if (os.startsWith("Mac"))