.getDependencies();
String repo = axisConfig.getRepository().getPath();
String artifactPath, destPath;
for (Artifact.Dependency dep : artifacts) {
Artifact artifact = dep.getArtifact();
if (artifact == null) {
continue;
}
if (BPELAppDeployer.BPEL_TYPE.equals(artifact.getType())) {
destPath = repo + File.separator + BPELAppDeployer.BPEL_DIR;
} else {
continue;
}
List<CappFile> files = artifact.getFiles();
if (files.size() != 1) {
log.error("A BPEL workflow must have a single file. But " +
files.size() + " files found.");
continue;
}
String fileName = artifact.getFiles().get(0).getName();
artifactPath = destPath + File.separator + fileName;
File artifactFile = new File(artifactPath);
if (artifactFile.exists() && !artifactFile.delete()) {
log.warn("Couldn't delete App artifact file : " + artifactPath);
}