* @return Whether to exclude a file from copying to the lib directory.
*/
protected boolean knownExclude(File file) throws IOException {
//instantiate a loader with this library only in its path...
URLClassLoader loader = new URLClassLoader(new URL[]{file.toURL()}, null);
if (loader.findResource("META-INF/enunciate/preserve-in-war") != null) {
debug("%s is a known include because it contains the entry META-INF/enunciate/preserve-in-war.", file);
//if a jar happens to have the enunciate "preserve-in-war" file, it is NOT excluded.
return false;
}
else if (loader.findResource(com.sun.tools.apt.Main.class.getName().replace('.', '/').concat(".class")) != null) {