((FileArchive) source).open(request.getDeployedDirectory().getAbsolutePath());
PEDeploymentFactoryImpl pe = new PEDeploymentFactoryImpl();
Properties props = getPropertiesForClientJarMaker(
CLIENT_JAR_CHOICES.getClientJarChoice(clientJarChoice),
request, descriptor);
ClientJarMaker jarMaker = pe.getClientJarMaker(props);
// copy xml files from generated directory archive to original
// directory archive so the created client jar contain
// processed xml files.
if (FileUtils.safeIsDirectory(
request.getGeneratedXMLDirectory())) {
AbstractArchive source2 = new FileArchive();
((FileArchive) source2).open(
request.getGeneratedXMLDirectory().getAbsolutePath());
jarMaker.create(descriptor, source, source2, target, clientStubs,
null);
source2.close();
} else {
jarMaker.create(descriptor, source, target, clientStubs,null);
}
source.close();
target.close();
} catch(Exception e) {
IASDeploymentException newE = new IASDeploymentException();