A singleton class that provides blazingly fast implementation of the default excludes of Ant's {@link org.apache.tools.ant.DirectoryScanner}, assuming case-sensitiveness. TODO: this class needs to be revisited, when Gwt's Ant is upgraded. Currently, we do not go to ant if (a) the filterList is empty, or (b) the filterList has "common" patterns. Exception: When path ends in '/', we defer to ant. TODO: This code could be made more general and cleaner by removing the dependency on Ant completely. All ant patterns could be compiled into reg-exps. That could also make the code faster. Plus, at several places, Ant's documentation seems to be incomplete. Instead, perhaps, we should specify our own rules for writing patterns.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.