+
+ public boolean matchesFile(File file) {
+ String absolutePath = file.getAbsolutePath();
+
+ Pattern pattern = Pattern.compile(fileRegex);
+ Matcher matcher = pattern.matcher(absolutePath);
+ return matcher.matches();
+ }
+
+ public String[] getCommands() {
+ return command.split("\\s+");
+ }