use of com.webcohesion.enunciate.modules.jaxws.WsdlInfo in project enunciate by stoicflame.
the class JavaXMLClientModule method copyResources.
protected File copyResources() {
File resourcesDir = getResourcesDir();
resourcesDir.mkdirs();
try {
if (this.jaxwsModule != null) {
for (WsdlInfo wsdlInfo : this.jaxwsModule.getJaxwsContext().getWsdls().values()) {
if (wsdlInfo.getWsdlFile() != null) {
wsdlInfo.getWsdlFile().writeTo(resourcesDir);
}
}
}
for (SchemaInfo schemaInfo : this.jaxbModule.getJaxbContext().getSchemas().values()) {
if (schemaInfo.getSchemaFile() != null) {
schemaInfo.getSchemaFile().writeTo(resourcesDir);
}
}
} catch (IOException e) {
throw new EnunciateException(e);
}
return resourcesDir;
}
Aggregations