String name = className.replace('.', '/');
String name = className.replace('.', File.separatorChar);
    public boolean isSelected(JavaClass clazz)    {        // The patternset evaluation code below was copied from Apache Ant's Expand task.        // I feel this code should be available as a library function inside Ant somewhere...        String className = clazz.getClassName();        String name = className.replace('.', '/');        if (patternSets == null || patternSets.isEmpty())        {            return true;        }        boolean included = false;        for (int i = 0; i < patternSets.size(); i++)        {            PatternSet p = (PatternSet) patternSets.get(i);            p.getIncludePatterns(project);            String[] incls = p.getIncludePatterns(project);            if (incls == null || incls.length == 0)            {                // no include pattern implicitly means includes="**"                incls = new String[] {"**"};            }            for (int w = 0; w < incls.length; w++)            {                String pattern = incls[w].replace('/', File.separatorChar)                        .replace('\\', File.separatorChar);                if (pattern.endsWith(File.separator))                {                    pattern += "**";                }                included = SelectorUtils.matchPath(pattern, name);                if (included)                {                    break;                }            }            if (!included)            {                break;            }            String[] excls = p.getExcludePatterns(project);            if (excls != null)            {                for (int w = 0; w < excls.length; w++)                {                    String pattern = excls[w]                            .replace('/', File.separatorChar)                            .replace('\\', File.separatorChar);                    if (pattern.endsWith(File.separator))                    {                        pattern += "**";                    }                    included = !(SelectorUtils.matchPath(pattern, name));                    if (!included)                    {                        break;                    }                }            }        }        project.log("included " + className + " = " + included, Project.MSG_VERBOSE);        return included;    }