classes2sources.put(foundEntry.getKey(), apiImport.isSeekSource() ? foundEntry.getValue() : null); else if (matcher.isPattern(pattern) && matcher.match(pattern, foundEntry.getKey())) { this.enunciate.debug("Class %s will be imported because it matches pattern %s.", foundEntry.getKey(), pattern); imported |= !classes2sources.containsKey(foundEntry.getKey());
matcher.setPathSeparator("."); for (APIImport apiImport : this.config.getAPIImports()) { if (!matcher.isPattern(apiImport.getPattern()) && !classes2sources.containsKey(apiImport.getPattern())) { warn("Class %s was explicitly imported, but it was not found on the classpath. We'll try to import it anyway.", apiImport.getPattern()); classes2sources.put(apiImport.getPattern(), null);
if (!matcher.isPattern(pattern)) { warn("'%s' is not a valid pattern. Resources NOT copied!", pattern); continue;