// Assemble portlet app by updating web.xml.
if (warFiles == null || warFiles.isEmpty()) {
AssemblerConfig config = createAssemblerConfig();
Assembler assembler = AssemblerFactory.getFactory()
.createAssembler(config);
assembler.assemble(config);
} else {
for (Iterator i = warFiles.iterator(); i.hasNext();) {
File warFile = new File(i.next().toString());
if (log.isInfoEnabled()) {
log.info("Assembling war file " + warFile.getAbsolutePath() + " to directory " + warFilesDestination.getAbsolutePath());