else if (this.enunciate.getConfig() != null && this.enunciate.getConfig().getAPIImports() != null && !this.enunciate.getConfig().getAPIImports().isEmpty()) { AntPatternMatcher matcher = new AntPatternMatcher(); matcher.setPathSeparator("."); for (APIImport apiImport : this.enunciate.getConfig().getAPIImports()) { String pattern = apiImport.getPattern(); if (pattern != null) {
if ((this.config != null) && (this.config.getAPIImports().size() > 0)) { for (APIImport apiImport : this.config.getAPIImports()) { if (apiImport.getClassname() != null) { info("Importing explicitly-imported class %s...", apiImport.getClassname());
if (this.config != null && this.config.getAPIImports() != null && !this.config.getAPIImports().isEmpty()) { AntPatternMatcher matcher = new AntPatternMatcher(); 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());