public boolean isExempt(String infile) {
        if (infile.toLowerCase().endsWith(".class")) {
            String inclass = infile.substring(0, infile.length() - 6);

            for (String exempt : exemptions) {
                if (inclass.startsWith(exempt + "/")) {
                    return true;
                }
            }

            // Non-exempt class file.
            return false;
        }

        // Non-class files are always exempt.
        return true;
    }