Port of Node.js' minimatch to Java.
import minimatch.Minimatch;
...
boolean result = Minimatch.minimatch("bar.foo", "*.foo"); // return true
boolean result = Minimatch.minimatch("js/test.js", "**/**.js"); // return true
boolean result = Minimatch.minimatch("js/test.html", "**/**.js"); // return false
See cloudbees job: https://opensagres.ci.cloudbees.com/job/minimatch.java/
The basic structure of the project is given in the following way:
src/main/java/
Java sources of minimatch.java.src/test/java/
JUnit tests of minimatch.java.html/
html samples which use JavaScript minimatch.