zin = new ZipInputStream(fin);
ZipEntry entry;
while ((entry = zin.getNextEntry()) != null) {
if (entry.getName().equalsIgnoreCase(MODULE_XML)) {
moduleXMLFound = true;
ModuleBuilder builder = new ModuleBuilder(zin, module, axisConfig);
// setting module name
module.setName(DescriptionBuilder.getShortFileName(
deploymentFile.getServiceName()));
builder.populateModule();
break;
}
}
zin.close();
fin.close();
if (!moduleXMLFound) {
throw new DeploymentException(
Messages.getMessage(
DeploymentErrorMsgs.MODULE_XML_MISSING,
deploymentFile.getAbsolutePath()));
}
} catch (Exception e) {
throw new DeploymentException(e);
}
} else {
File file = new File(deploymentFile.getAbsolutePath(), MODULE_XML);
if (file.exists() ||
(file = new File(deploymentFile.getAbsolutePath(), MODULE_XML.toLowerCase()))
.exists()) {
InputStream in = null;
try {
in = new FileInputStream(file);
ModuleBuilder builder = new ModuleBuilder(in, module, axisConfig);
// setting module name
module.setName(DescriptionBuilder.getShortFileName(
deploymentFile.getServiceName()));
builder.populateModule();
} catch (FileNotFoundException e) {
throw new DeploymentException(
Messages.getMessage(DeploymentErrorMsgs.FILE_NOT_FOUND,
e.getMessage()));
} finally {