matcher.setPathSeparator("."); for (APIImport apiImport : this.enunciate.getConfig().getAPIImports()) { String pattern = apiImport.getPattern(); if (pattern != null) { if (!classes2sources.containsKey(foundEntry.getKey())) { this.enunciate.debug("Class %s will be imported because it was explicitly listed.", foundEntry.getKey()); imported |= !classes2sources.containsKey(foundEntry.getKey()); classes2sources.put(foundEntry.getKey(), apiImport.isSeekSource() ? foundEntry.getValue() : null); classes2sources.put(foundEntry.getKey(), apiImport.isSeekSource() ? foundEntry.getValue() : null);
if (apiImport.getClassname() != null) { info("Importing explicitly-imported class %s...", apiImport.getClassname()); imports2seekSource.put(apiImport.getClassname(), apiImport.isSeekSource());
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);